From 90e4655a44ef801211da18ebb5bf57d75b7cd498 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Mon, 29 Aug 2016 17:29:46 +0200 Subject: [PATCH] Don't return `/` for events --- radicale/xmlutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index 7fc7534..a75a441 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -425,7 +425,7 @@ def name_from_path(path, collection): start = collection.path + "/" if not path.startswith(start): raise ValueError("'%s' doesn't start with '%s'" % (path, start)) - return path[len(start):] + return path[len(start):].rstrip("/") def props_from_request(root, actions=("set", "remove")):