[Zope3-checkins] SVN: zope.formlib/branches/adamg-3.4.1/src/zope/formlib/form.py quote too, that wrecks HTML too

Adam Groszer agroszer at gmail.com
Mon Nov 16 11:43:38 EST 2009


Log message for revision 105725:
  quote too, that wrecks HTML too

Changed:
  U   zope.formlib/branches/adamg-3.4.1/src/zope/formlib/form.py

-=-
Modified: zope.formlib/branches/adamg-3.4.1/src/zope/formlib/form.py
===================================================================
--- zope.formlib/branches/adamg-3.4.1/src/zope/formlib/form.py	2009-11-16 16:32:45 UTC (rev 105724)
+++ zope.formlib/branches/adamg-3.4.1/src/zope/formlib/form.py	2009-11-16 16:43:38 UTC (rev 105725)
@@ -619,7 +619,7 @@
         label = zope.i18n.translate(self.label, context=self.form.request)
     return ('<input type="submit" id="%s" name="%s" value="%s"'
             ' class="button" />' %
-            (self.__name__, self.__name__, escape(label))
+            (self.__name__, self.__name__, escape(label, quote=True))
             )
 
 class action:



More information about the Zope3-Checkins mailing list