Skip to content

Commit 3a5f4b2

Browse files
authored
fix: japanese dot example fix (#2243)
Now it should be good.
1 parent 7dacace commit 3a5f4b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/utilities/request.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ func IsRedirectURLValid(config *conf.GlobalConfiguration, redirectURL string) bo
101101
return false
102102
}
103103

104-
scheme := strings.ToLower(refurl.Scheme)
105-
isHTTP := scheme == "http:" || scheme == "https:"
104+
scheme := strings.TrimSuffix(strings.ToLower(refurl.Scheme), ":")
105+
isHTTP := scheme == "http" || scheme == "https"
106106

107107
if decimalIPAddressPattern.MatchString(refurl.Hostname()) {
108108
// IP address in decimal form also not allowed in redirects!

0 commit comments

Comments
 (0)