[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/i18nfile/browser/i18nimage.py
Resolved an XXX by quoting part of a url.
Jim Fulton
jim at zope.com
Wed Jul 7 14:22:07 EDT 2004
Log message for revision 26174:
Resolved an XXX by quoting part of a url.
-=-
Modified: Zope3/trunk/src/zope/app/i18nfile/browser/i18nimage.py
===================================================================
--- Zope3/trunk/src/zope/app/i18nfile/browser/i18nimage.py 2004-07-07 18:09:24 UTC (rev 26173)
+++ Zope3/trunk/src/zope/app/i18nfile/browser/i18nimage.py 2004-07-07 18:22:07 UTC (rev 26174)
@@ -19,8 +19,8 @@
from zope.app.i18n import ZopeMessageIDFactory as _
from zope.app.file.browser.image import ImageData
from zope.app.size import byteDisplay
+from urllib import quote
-
class I18nImageEdit(object):
name = 'editForm'
@@ -54,9 +54,9 @@
self.context.setData(data, language)
self.context.contentType = contentType
return self.request.response.redirect(self.request.URL[-1] +
- "/upload.html?language=%s" % language) # XXX url_quote
+ "/upload.html?language=%s" % quote(language, ''))
-
+
class I18nImageData(ImageData):
def __call__(self):
More information about the Zope3-Checkins
mailing list