From 2f1debaa9696ecc3b9b78e312cb1a9b4eb832d30 Mon Sep 17 00:00:00 2001 From: F04C Date: Wed, 7 Jan 2026 15:32:30 +0800 Subject: [PATCH] added logging --- handlers/redirect.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/handlers/redirect.go b/handlers/redirect.go index ccedb7b..60fe2c8 100644 --- a/handlers/redirect.go +++ b/handlers/redirect.go @@ -1,6 +1,7 @@ package handlers import ( + "log" "os" "strings" ) @@ -13,9 +14,10 @@ func IsAllowedRedirectURI(uri string) bool { allowedRedirectURIs := strings.Split(allowedRedirectURIsEnv, ",") for _, allowed := range allowedRedirectURIs { - if uri == strings.TrimSpace(allowed) { // Exact match only + if uri == strings.TrimSpace(allowed) { return true } } + log.Print("Redirect URI not allowed: ", uri) return false }