1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-22 19:20:54 +00:00

Fix propfind paths

This commit is contained in:
Guillaume Ayoub 2011-06-16 07:49:47 +02:00
parent 00d8b08341
commit ed1ad975a6
2 changed files with 2 additions and 3 deletions

View file

@ -143,8 +143,7 @@ class Application(object):
@staticmethod
def sanitize_uri(uri):
"""Clean URI: unquote and remove /../ to prevent access to other data."""
uri = posixpath.normpath(urllib.unquote(uri))
return uri
return posixpath.normpath(urllib.unquote(uri))
def __call__(self, environ, start_response):
"""Manage a request."""