fix: fix domain check in acl service

This commit is contained in:
Stavros
2026-07-13 22:01:49 +03:00
parent b62bb2d37a
commit 25a41bf62b
2 changed files with 53 additions and 8 deletions
+4 -1
View File
@@ -350,7 +350,10 @@ func (controller *OAuthController) isRedirectSafe(redirectURI string) bool {
return false
}
if strings.EqualFold(u.Hostname(), au.Hostname()) {
nu := strings.TrimSuffix(u.Hostname(), ".")
nau := strings.TrimSuffix(au.Hostname(), ".")
if strings.EqualFold(nu, nau) {
return true
}