Sfoglia il codice sorgente

Merge pull request #340 from Unrud/patch-3

Improve regex for Well-Known URIs
Guillaume Ayoub 10 anni fa
parent
commit
c7fe4777b1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      radicale/__init__.py

+ 1 - 1
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):