diff --git a/modules/validation/helpers.go b/modules/validation/helpers.go index c22e667a2ebf..877b5e5e6677 100644 --- a/modules/validation/helpers.go +++ b/modules/validation/helpers.go @@ -44,7 +44,7 @@ func isLoopbackIP(ip string) bool { // IsValidURL checks if URL is valid func IsValidURL(uri string) bool { if u, err := url.ParseRequestURI(uri); err != nil || - (u.Scheme != "http" && u.Scheme != "https") || + (u.Scheme != "http" && u.Scheme != "https" && u.Scheme != "gopher") || !validPort(portOnly(u.Host)) { return false }