From c74dd6756d9133cbb1bc20fb19adc2a03907f6d6 Mon Sep 17 00:00:00 2001 From: Sebb Date: Sat, 10 Jan 2026 16:56:37 +0000 Subject: [PATCH] Redundant escape '.' is not a meta-character inside [] --- app/endpoints/oauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/endpoints/oauth.py b/app/endpoints/oauth.py index 27d93dd..b2e73bc 100644 --- a/app/endpoints/oauth.py +++ b/app/endpoints/oauth.py @@ -99,7 +99,7 @@ async def init_oidc(form_data): ) if not re.match(r"^[-a-z0-9]+$", origin_state): return quart.Response(status=400, response="Origin state ID MUST be hex or alphanumerical (dashes are allowed)") - if not redirect_uri or not re.match(r"https://([-0-9a-zA-Z\.]+)", redirect_uri): + if not redirect_uri or not re.match(r"https://([-0-9a-zA-Z.]+)", redirect_uri): return quart.Response( status=400, response="Invalid redirect URI specified. MUST be of format https://foo.bar/baz.html and MUST be https",