mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-06 20:10:56 +00:00
Fix the iCal support (now tested with iCal, Lightning, Evolution)
This commit is contained in:
parent
d17e8fa990
commit
e9ad9b1716
3 changed files with 14 additions and 14 deletions
|
@ -144,7 +144,11 @@ class Application(object):
|
|||
@staticmethod
|
||||
def sanitize_uri(uri):
|
||||
"""Clean URI: unquote and remove /../ to prevent access to other data."""
|
||||
return posixpath.normpath(unquote(uri))
|
||||
uri = unquote(uri)
|
||||
trailing_slash = "/" if uri.endswith("/") else ""
|
||||
uri = posixpath.normpath(uri)
|
||||
trailing_slash = "" if uri == "/" else trailing_slash
|
||||
return uri + trailing_slash
|
||||
|
||||
def __call__(self, environ, start_response):
|
||||
"""Manage a request."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue