Properly escape user provided data in trans with data to prevent possible XSS attack vectors.

This commit is contained in:
Jan Böhmer 2023-02-26 00:41:08 +01:00
parent 5b7f44f4ea
commit 6ff60e556e
3 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
{% block content %}
<row>
<columns>
<h4>{% trans with {'%name%': user.fullName} %}email.hi %name%{% endtrans %},</h4>
<h4>{% trans with {'%name%': user.fullName|escape } %}email.hi %name%{% endtrans %},</h4>
{% trans %}email.pw_reset.message{% endtrans %}
<br>
<button class="large expand" href="{{ url('pw_reset_new_pw', {user: user.name, token: token}) }}">{% trans %}email.pw_reset.button{% endtrans %}</button>