commit/galaxy-central: jmchilton: Merged in dannon/galaxy-central/stable (pull request #602)
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/212e1d5e9be5/ Changeset: 212e1d5e9be5 Branch: stable User: jmchilton Date: 2014-12-10 17:20:55+00:00 Summary: Merged in dannon/galaxy-central/stable (pull request #602) [STABLE] Force sanitization of form.title and form.name. Header needs more digging; we actually use html content in the field. Affected #: 1 file diff -r 2db0fb9594d6c315e4e0a4be70f64373cfc708f6 -r 212e1d5e9be5a9a1e12c834bd545de504753c9fe templates/form.mako --- a/templates/form.mako +++ b/templates/form.mako @@ -22,7 +22,7 @@ </%def> -<%def name="title()">${form.title}</%def> +<%def name="title()">${form.title | h}</%def><%def name="javascripts()"> ${parent.javascripts()} @@ -53,7 +53,7 @@ %endif <div class="form" style="margin: 1em"> - <div class="form-title">${util.unicodify( form.title )}</div> + <div class="form-title">${util.unicodify( form.title ) | h }</div><div class="form-body"><% has_file_input = False @@ -62,7 +62,7 @@ has_file_input = True break %> - <form name="${form.name}" action="${form.action}" method="post" + <form name="${form.name | h }" action="${form.action}" method="post" %if has_file_input: enctype="multipart/form-data" %endif @@ -76,28 +76,28 @@ <div class="${cls}"> %if input.use_label: <label> - ${_(input.label)}: + ${_(input.label) | h }: </label> %endif <div class="form-row-input"> %if input.type == 'textarea': - <textarea name="${input.name}">${input.value}</textarea> + <textarea name="${input.name | h }">${input.value | h }</textarea> %elif input.type == 'select': - <select name="${input.name}"> + <select name="${input.name | h}"> %for (name, value) in input.options: - <option value="${value}">${name}</option> + <option value="${value | h }">${name | h }</option> %endfor </select> %else: - <input type="${input.type}" name="${input.name}" value="${input.value}"> + <input type="${input.type}" name="${input.name | h }" value="${input.value | h }"> %endif </div> %if input.error: - <div class="form-row-error-message">${input.error}</div> + <div class="form-row-error-message">${input.error | h }</div> %endif %if input.help: <div class="toolParamHelp" style="clear: both;"> - ${input.help} + ${input.help | h} </div> %endif <div style="clear: both"></div> Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org