Skip to content

Commit

Permalink
using safestr in web.form.Dropdown._render_option
Browse files Browse the repository at this point in the history
  • Loading branch information
nopri committed Feb 17, 2014
1 parent cf66831 commit 65e5212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def _render_option(self, arg, indent=' '):
else:
value, desc = arg, arg

if self.value == value or (isinstance(self.value, list) and value in self.value):
if utils.safestr(self.value) == utils.safestr(value) or (isinstance(self.value, list) and value in self.value):
select_p = ' selected="selected"'
else:
select_p = ''
Expand Down

0 comments on commit 65e5212

Please sign in to comment.