[Zope3-checkins] CVS: Zope3/src/zope/publisher - http.py:1.43
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Mar 18 23:26:29 EST 2004
Update of /cvs-repository/Zope3/src/zope/publisher
In directory cvs.zope.org:/tmp/cvs-serv14421/src/zope/publisher
Modified Files:
http.py
Log Message:
Reimplemented unicode in URLs handling functionality. We only want to decode
the path segments not the entire path. One test failed becuae of this; it is
now fixed though.
=== Zope3/src/zope/publisher/http.py 1.42 => 1.43 ===
--- Zope3/src/zope/publisher/http.py:1.42 Thu Mar 18 15:03:55 2004
+++ Zope3/src/zope/publisher/http.py Thu Mar 18 23:26:28 2004
@@ -405,11 +405,10 @@
# encoding for unsafe octets is recommended.
#
# See: http://www.ietf.org/rfc/rfc2718.txt, Section 2.2.5
- path = self.get("PATH_INFO", "/")
- path = unquote(path)
- path = path.decode('UTF-8')
- self._environ["PATH_INFO"] = path
self._setupPath_helper("PATH_INFO")
+ stack = self.getTraversalStack()
+ stack = [unquote(seg).decode('utf-8') for seg in stack]
+ self.setTraversalStack(stack)
def supportsRetry(self):
'See IPublisherRequest'
More information about the Zope3-Checkins
mailing list