Procházet zdrojové kódy

Fix URLs in report requests

Guillaume Ayoub před 14 roky
rodič
revize
af10a2f1c4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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"))