Skip to content

Commit

Permalink
Escape values and labels
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Dec 7, 2017
1 parent 3f43fad commit 3b16a39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/webapps/tool_shed/common/common.mako
Expand Up @@ -9,14 +9,14 @@
%if select.display == "checkboxes":
%for o in select.options:
<div>
<input type="checkbox" name="${select.name}" value="${o[1]}" refresh_on_change="${select.refresh_on_change}" ${"disabled" if disabled else ""}>
<input type="checkbox" name="${select.name}" value="${escape(o[1])}" refresh_on_change="${select.refresh_on_change}" ${"disabled" if disabled else ""}>
${escape(o[0])}
</div>
%endfor
%else:
<select id="${select.field_id}" name="${select.name}" multiple="${select.multiple}" refresh_on_change="${select.refresh_on_change}">
%for o in select.options:
<option value="${o[1]}">${escape(o[0])}</option>
<option value="${escape(o[1])}">${escape(o[0])}</option>
%endfor
</select>
%endif
Expand Down

0 comments on commit 3b16a39

Please sign in to comment.