Skip to content

Commit 9727d8c

Browse files
hfcemalkilic
authored andcommitted
fix: use redirect URL as-is for mobile apps (#2007)
`net/url` truncates `Scheme.Something://` to `scheme.something:` breaking backward compatibility.
1 parent 322f363 commit 9727d8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/utilities/request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func IsRedirectURLValid(config *conf.GlobalConfiguration, redirectURL string) bo
109109

110110
// For case when user came from mobile app or other permitted resource - redirect back
111111
for _, pattern := range config.URIAllowListMap {
112-
if pattern.Match(refurl.String()) {
112+
if pattern.Match(redirectURL) {
113113
return true
114114
}
115115
}

0 commit comments

Comments
 (0)