This commit is contained in:
Unknwon committed 2015-08-29 14:44:38 +08:00
1 parent 63799b3c18
commit 384fbeca80
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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
}