mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-04 02:05:16 +02:00
Properly escape user provided data in trans with data to prevent possible XSS attack vectors.
This commit is contained in:
parent
5b7f44f4ea
commit
6ff60e556e
3 changed files with 4 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue