[Zope-Checkins] CVS: Zope/lib/python/OFS - Image.py:1.137.12.1
Matt Behrens
matt@zigg.com
Wed, 29 May 2002 15:45:52 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv18366/lib/python/OFS
Modified Files:
Tag: zigg_unix-install-control-config-branch
Image.py
Log Message:
Merge in HEAD (except setup.py... gotta chat about that one) :-)
=== Zope/lib/python/OFS/Image.py 1.137 => 1.137.12.1 ===
from ZPublisher import HTTPRangeSupport
from ZPublisher.HTTPRequest import FileUpload
+from cgi import escape
StringType=type('')
manage_addFileForm=DTMLFile('dtml/imageAdd', globals(),Kind='File',kind='file')
@@ -740,7 +741,7 @@
if alt is None:
alt=getattr(self, 'title', '')
- result = '%s alt="%s"' % (result, alt)
+ result = '%s alt="%s"' % (result, escape(alt, 1))
if height:
result = '%s height="%s"' % (result, height)