[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/i18nfile/browser/i18nfile.py Resolved an XXX by quoting part of a url.

Jim Fulton jim at zope.com
Wed Jul 7 14:09:24 EDT 2004


Log message for revision 26173:
Resolved an XXX by quoting part of a url.



-=-
Modified: Zope3/trunk/src/zope/app/i18nfile/browser/i18nfile.py
===================================================================
--- Zope3/trunk/src/zope/app/i18nfile/browser/i18nfile.py	2004-07-07 17:47:08 UTC (rev 26172)
+++ Zope3/trunk/src/zope/app/i18nfile/browser/i18nfile.py	2004-07-07 18:09:24 UTC (rev 26173)
@@ -15,6 +15,8 @@
 
 $Id$
 """
+
+from urllib import quote
 from zope.i18n.negotiator import negotiator
 from zope.app.i18n import ZopeMessageIDFactory as _
 
@@ -61,4 +63,4 @@
             self.context.setData(data, language)
             self.context.contentType = contentType
         return self.request.response.redirect(self.request.URL[-1] +
-                      "/editForm.html?language=%s" %language)  # XXX url_quote
+                      "/editForm.html?language=%s" % quote(language, ''))



More information about the Zope3-Checkins mailing list