Explorar o código

Fix URLs in report requests

Guillaume Ayoub %!s(int64=14) %!d(string=hai) anos
pai
achega
5018c132a7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      radicale/xmlutils.py

+ 1 - 1
radicale/xmlutils.py

@@ -425,7 +425,7 @@ def report(path, xml_request, calendar):
             multistatus.append(response)
 
             href = ET.Element(_tag("D", "href"))
-            href.text = path + item.name
+            href.text = "%s/%s" % (path, item.name)
             response.append(href)
 
             propstat = ET.Element(_tag("D", "propstat"))