Skip to content

Commit

Permalink
button label needs escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Groszer committed Nov 16, 2009
1 parent 49b5678 commit 832edf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zope/formlib/form.py
Expand Up @@ -18,6 +18,7 @@
import re
import sys
import pytz
from cgi import escape

import zope.event
import zope.i18n
Expand Down Expand Up @@ -618,7 +619,7 @@ def render_submit_button(self):
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__, label)
(self.__name__, self.__name__, escape(label))
)

class action:
Expand Down

0 comments on commit 832edf0

Please sign in to comment.