summaryrefslogtreecommitdiffstats
path: root/modules/avatar
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-29 14:44:38 +0800
committerUnknwon <u@gogs.io>2015-08-29 14:44:38 +0800
commit384fbeca801180c2f156e916bf69324590472e03 (patch)
tree2ffc0d2b109c11bb4e3c57f9a56992ee24bb6774 /modules/avatar
parent63799b3c18b2511f51ccb1a985391ede641e8e93 (diff)
downloadgitea-384fbeca801180c2f156e916bf69324590472e03.tar.gz
gitea-384fbeca801180c2f156e916bf69324590472e03.zip
#1474 logic fix
Diffstat (limited to 'modules/avatar')
-rw-r--r--modules/avatar/avatar.go2
1 files changed, 1 insertions, 1 deletions
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
}