[CalendarServer-changes] [12974] CalendarServer/branches/users/sagen/move2who-4/txweb2/dav/util.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 19 17:06:42 PDT 2014
Revision: 12974
http://trac.calendarserver.org//changeset/12974
Author: wsanchez at apple.com
Date: 2014-03-19 17:06:42 -0700 (Wed, 19 Mar 2014)
Log Message:
-----------
Encode path as utf-8 before passing it along to urllib.quote.
Modified Paths:
--------------
CalendarServer/branches/users/sagen/move2who-4/txweb2/dav/util.py
Modified: CalendarServer/branches/users/sagen/move2who-4/txweb2/dav/util.py
===================================================================
--- CalendarServer/branches/users/sagen/move2who-4/txweb2/dav/util.py 2014-03-19 23:27:21 UTC (rev 12973)
+++ CalendarServer/branches/users/sagen/move2who-4/txweb2/dav/util.py 2014-03-20 00:06:42 UTC (rev 12974)
@@ -129,7 +129,7 @@
(scheme, host, path, query, fragment) = urlsplit(cleanup(url))
- path = cleanup(posixpath.normpath(urllib.unquote(path)))
+ path = cleanup(posixpath.normpath(urllib.unquote(path))).encode("utf-8")
return urlunsplit((scheme, host, urllib.quote(path), query, fragment))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140319/a093ceb7/attachment-0001.html>
More information about the calendarserver-changes
mailing list