mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-02 16:58:30 +00:00
Revert a strange commit (let's say I was tired)
This commit is contained in:
parent
69e2eb0908
commit
040d3b87a8
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ class Collection(object):
|
|||
# First do normpath and then strip, to prevent access to FOLDER/../
|
||||
sane_path = posixpath.normpath(path.replace(os.sep, "/")).strip("/")
|
||||
attributes = sane_path.split("/")
|
||||
if not sane_path or not attributes:
|
||||
if not attributes:
|
||||
return []
|
||||
if not (cls.is_leaf("/".join(attributes)) or path.endswith("/")):
|
||||
attributes.pop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue