We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 404f348 commit 9c5bb2bCopy full SHA for 9c5bb2b
modules/validation/helpers.go
@@ -44,7 +44,7 @@ func isLoopbackIP(ip string) bool {
44
// IsValidURL checks if URL is valid
45
func IsValidURL(uri string) bool {
46
if u, err := url.ParseRequestURI(uri); err != nil ||
47
- (u.Scheme != "http" && u.Scheme != "https") ||
+ (u.Scheme != "http" && u.Scheme != "https" && u.Scheme != "gopher") ||
48
!validPort(portOnly(u.Host)) {
49
return false
50
}
0 commit comments