mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-24 04:44:35 +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
|
@ -37,7 +37,7 @@
|
|||
<fieldset>
|
||||
<legend>
|
||||
{% if entity.ID %}
|
||||
<strong>{% block edit_title %}{% trans with {'%name': entity.name} %}edit.caption{% endtrans %}{% endblock %}</strong>
|
||||
<strong>{% block edit_title %}{% trans with {'%name': entity.name|escape } %}edit.caption{% endtrans %}{% endblock %}</strong>
|
||||
{% if timeTravel is defined and timeTravel is not null %}
|
||||
({{ timeTravel|format_datetime('short') }})
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue