From 7cb31fe22b97e0424096d6713876c6a6306cb418 Mon Sep 17 00:00:00 2001 From: Unrud Date: Tue, 22 Dec 2015 12:44:19 +0100 Subject: [PATCH] Improve regex for Well-Known URIs Example to show the problem: /Xwell-known/carddavXX --- radicale/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index 3656633..f91f8bf 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -57,7 +57,7 @@ VERSION = "1.0.1" # tries to access information they don't have rights to NOT_ALLOWED = (client.FORBIDDEN, {}, None) -WELL_KNOWN_RE = re.compile(r"/.well-known/(carddav|caldav)/?") +WELL_KNOWN_RE = re.compile(r"/\.well-known/(carddav|caldav)/?$") class HTTPServer(wsgiref.simple_server.WSGIServer, object):