mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-21 13:38:00 +02:00
#1474 logic fix
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user