[FIX] web_kanban: access gravatar with current scheme

When Odoo is accessed in https, inserting the gravatar
image using the http protocol leads to a security
alert in most browsers.

Closes #3042
This commit is contained in:
Christophe Combelles 2015-08-14 15:34:14 +02:00 committed by Denis Ledoux
parent d98ac716c1
commit 11cd8ba06c
1 changed files with 1 additions and 1 deletions

View File

@ -991,7 +991,7 @@ instance.web_kanban.KanbanRecord = instance.web.Widget.extend({
email = _.str.trim(email || '').toLowerCase();
var default_ = _.str.isBlank(email) ? 'mm' : 'identicon';
var email_md5 = $.md5(email);
return 'http://www.gravatar.com/avatar/' + email_md5 + '.png?s=' + size + '&d=' + default_;
return '//www.gravatar.com/avatar/' + email_md5 + '.png?s=' + size + '&d=' + default_;
},
kanban_image: function(model, field, id, cache, options) {
options = options || {};