Skip to content
Snippets Groups Projects
Commit 66810dad authored by Jan Mach's avatar Jan Mach
Browse files

Added '&' escaping to report message display view.

For some reason the obvious solution "item.message | escape | ..." did not work and the escape filter escaped everything that was being appended with the later filters, which resulted in mangled report message. (Redmine issue: #3443)
parent e3547a6f
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@
<div role="tabpanel" class="tab-pane fade in active" id="tab-report-message">
<br>
<samp>
{{ item.message | replace("<", "&lt;") | replace(">", "&gt;") | replace("\n", "<br/>\n") | replace(' ', '&nbsp;') | replace("\t", '&nbsp;&nbsp;&nbsp;&nbsp;') | safe }}
{{ item.message | replace("&", "&amp;") | replace("<", "&lt;") | replace(">", "&gt;") | replace("\n", "<br/>\n") | replace(' ', '&nbsp;') | replace("\t", '&nbsp;&nbsp;&nbsp;&nbsp;') | safe }}
</samp>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment