From 05ca5edeeb9e52c8fee0afe81c60a690eb2a5018 Mon Sep 17 00:00:00 2001 From: Sebastian Gierlinger Date: Tue, 17 Dec 2013 17:21:00 +0100 Subject: [PATCH] Remove fixed scheme from gravatar url MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit no issue - removed scheme from gravatar url Reason: Gravatar supports ssl and the fixed scheme will cause ‚insecure content‘ warnings. --- core/server/models/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/models/user.js b/core/server/models/user.js index bc69951ed6b..a7d69932dd8 100644 --- a/core/server/models/user.js +++ b/core/server/models/user.js @@ -357,7 +357,7 @@ User = ghostBookshelf.Model.extend({ }, gravatarLookup: function (userData) { - var gravatarUrl = 'http://www.gravatar.com/avatar/' + + var gravatarUrl = '//www.gravatar.com/avatar/' + crypto.createHash('md5').update(userData.email.toLowerCase().trim()).digest('hex') + "?d=404", checkPromise = when.defer();