Remove double slashes in report href URLs (related to #618)

This commit is contained in:
Guillaume Ayoub 2011-12-07 12:38:45 +01:00
parent f21ad8a350
commit f2d491ea61

View File

@ -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"))