Commit 1bc17c5f authored by Leigh Stoller's avatar Leigh Stoller

Some quick fixes for how we encode the extension text into JSON; there was

an interaction between htmlentities and json_encode. I got rid of the
former and added options to json_encode, but that is not safe, so need to
make sure we use jquery .text() and underscore template <%- when displaying
that text.
parent 27a6767a
......@@ -412,7 +412,7 @@ define(['underscore', 'js/quickvm_sup',
}
}
if ($('#extension_reason').length) {
$("#why_extend").val($('#extension_reason').val());
$("#why_extend").text($('#extension_reason').val());
$("#why_extend_div").removeClass("hidden");
}
if (admin && $('#extensions-json').length) {
......
......@@ -143,7 +143,7 @@ pre {
<% } %>
</tr>
<tr>
<td colspan="3"><pre class="history-reason"><%= extension.reason %></pre>
<td colspan="3"><pre class="history-reason"><%- extension.reason %></pre>
</td>
</tr>
<% }); %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment