Merge URI sanitize fix
This commit is contained in:

committed by
Guillaume Ayoub

parent
da42112740
commit
00d8b08341
@ -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"):
|
||||
|
Reference in New Issue
Block a user