mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
Bugfix: Escaped HTML in messages and errors (#1890)
* assume flashed messages and errors are safe
This commit is contained in:
parent
62f823989d
commit
66d56a2c8e
1 changed files with 2 additions and 2 deletions
|
|
@ -91,12 +91,12 @@
|
|||
{% with messages = get_flashed_messages(with_categories=True) %}
|
||||
{% if messages %}
|
||||
{% for category, message in messages | unique %}
|
||||
<message-box type="{{ category }}">{{ message }}</message-box>
|
||||
<message-box type="{{ category }}">{{ message | safe }}</message-box>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{% if error %}
|
||||
<message-box type="error">{{ _("ERROR:") }} {{error}}</message-box>
|
||||
<message-box type="error">{{ _("ERROR:") }} {{error | safe }}</message-box>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue