[Zope3-checkins] CVS: Zope3/lib/python/Zope/Publisher/Browser - BrowserResponse.py:1.6

Jim Fulton jim@zope.com
Thu, 3 Oct 2002 09:08:59 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/Browser
In directory cvs.zope.org:/tmp/cvs-serv15322

Modified Files:
	BrowserResponse.py 
Log Message:
Need to str uris given to redirect since HTTPResponse seems to accept
non-string but strinable objects. I think this was mainly to avoid
unicode infection, but some application code seems to depend on it.


=== Zope3/lib/python/Zope/Publisher/Browser/BrowserResponse.py 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/Publisher/Browser/BrowserResponse.py:1.5	Tue Oct  1 08:49:09 2002
+++ Zope3/lib/python/Zope/Publisher/Browser/BrowserResponse.py	Thu Oct  3 09:08:59 2002
@@ -100,7 +100,7 @@
 
     def redirect(self, uri):
         base = getattr(self, '_base', '')
-        if isRelative(uri) and base:
+        if base and isRelative(str(uri)):
             l = base.rfind('/')
             if l >= 0:
                 base = base[:l+1]