Remove double slashes in report href URLs (related to #618)
This commit is contained in:
parent
f21ad8a350
commit
f2d491ea61
@ -438,7 +438,7 @@ def report(path, xml_request, calendar):
|
|||||||
multistatus.append(response)
|
multistatus.append(response)
|
||||||
|
|
||||||
href = ET.Element(_tag("D", "href"))
|
href = ET.Element(_tag("D", "href"))
|
||||||
href.text = "%s/%s" % (path, item.name)
|
href.text = "%s/%s" % (path.rstrip("/"), item.name)
|
||||||
response.append(href)
|
response.append(href)
|
||||||
|
|
||||||
propstat = ET.Element(_tag("D", "propstat"))
|
propstat = ET.Element(_tag("D", "propstat"))
|
||||||
|
Loading…
Reference in New Issue
Block a user