From f2d491ea61a5fdde494103206e0fc6624f842be2 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Wed, 7 Dec 2011 12:38:45 +0100 Subject: [PATCH] Remove double slashes in report href URLs (related to #618) --- radicale/xmlutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index 1b0163d..514e822 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -438,7 +438,7 @@ def report(path, xml_request, calendar): multistatus.append(response) href = ET.Element(_tag("D", "href")) - href.text = "%s/%s" % (path, item.name) + href.text = "%s/%s" % (path.rstrip("/"), item.name) response.append(href) propstat = ET.Element(_tag("D", "propstat"))