From 384fbeca801180c2f156e916bf69324590472e03 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 29 Aug 2015 14:44:38 +0800 Subject: #1474 logic fix --- modules/avatar/avatar.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/avatar') diff --git a/modules/avatar/avatar.go b/modules/avatar/avatar.go index 52a9433dec..493f6d9310 100644 --- a/modules/avatar/avatar.go +++ b/modules/avatar/avatar.go @@ -45,7 +45,7 @@ func UpdateGravatarSource() { gravatarSource = setting.GravatarSource if strings.HasPrefix(gravatarSource, "//") { gravatarSource = "http:" + gravatarSource - } else if !strings.HasPrefix(gravatarSource, "http://") || + } else if !strings.HasPrefix(gravatarSource, "http://") && !strings.HasPrefix(gravatarSource, "https://") { gravatarSource = "http://" + gravatarSource } -- cgit v1.2.3