[CalendarServer-changes] [5533] CalendarServer/trunk/twext/web2/dav/resource.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Apr 27 10:48:10 PDT 2010


Revision: 5533
          http://trac.macosforge.org/projects/calendarserver/changeset/5533
Author:   cdaboo at apple.com
Date:     2010-04-27 10:48:09 -0700 (Tue, 27 Apr 2010)
Log Message:
-----------
Fix for double-encoded uri.

Modified Paths:
--------------
    CalendarServer/trunk/twext/web2/dav/resource.py

Modified: CalendarServer/trunk/twext/web2/dav/resource.py
===================================================================
--- CalendarServer/trunk/twext/web2/dav/resource.py	2010-04-27 17:47:34 UTC (rev 5532)
+++ CalendarServer/trunk/twext/web2/dav/resource.py	2010-04-27 17:48:09 UTC (rev 5533)
@@ -673,7 +673,7 @@
             except IndexError:
                 completionDeferred.callback(None)
             else:
-                childpath = joinURL(basepath, childname)
+                childpath = joinURL(basepath, urllib.quote(childname))
                 d = request.locateChildResource(self, childname)
                 d.addCallback(checkPrivileges)
                 d.addCallbacks(gotChild, checkPrivilegesError, (childpath,))
@@ -726,7 +726,7 @@
         for childname in childnames:
             if names and childname not in names:
                 continue
-            childpath = joinURL(basepath, childname)
+            childpath = joinURL(basepath, urllib.quote(childname))
             child = (yield request.locateChildResource(self, childname))
             if child is None:
                 children.append((None, childpath + "/"))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100427/b00d1dce/attachment.html>


More information about the calendarserver-changes mailing list