Ver Fonte

Fix URLs in report requests

Guillaume Ayoub há 14 anos atrás
pai
commit
af10a2f1c4
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      radicale/xmlutils.py

+ 1 - 1
radicale/xmlutils.py

@@ -430,7 +430,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"))