Fixed XSS vulnerability when displaying form error messages.

This commit is contained in:
Antoine Nguyen
2023-10-17 15:25:45 +02:00
parent 23e4c25511
commit 6fdb077ca5
+2 -2
View File
@@ -12,7 +12,7 @@
{% endif %}
</label>
{% endif %}
<div class="{% render_field_width field %}">
{% if appended_text %}
<div class="input-group">
@@ -31,7 +31,7 @@
{% if field.errors %}
<p class="help-block">
{% for error in field.errors %}
{{ error|safe }}
{{ error }}
{% endfor %}
</p>
{% endif %}