diff --git a/radicale/ical.py b/radicale/ical.py index b1f55c4..e15f4a6 100644 --- a/radicale/ical.py +++ b/radicale/ical.py @@ -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()