1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00

Merge branch 'master' into lightning

This commit is contained in:
Guillaume Ayoub 2011-06-15 23:22:49 +02:00
commit 87a4a4e012
2 changed files with 15 additions and 1 deletions

View file

@ -183,7 +183,8 @@ class Calendar(object):
The ``path`` is relative to the storage folder.
"""
attributes = posixpath.normpath(path.strip("/")).split("/")
# First do normpath and then strip, to prevent access to FOLDER/../
attributes = posixpath.normpath(path).strip("/").split("/")
if not attributes:
return None
if attributes[-1].endswith(".ics"):