[web] fixed html in alerts

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
This commit is contained in:
Kristian Feldsam
2021-11-28 22:48:08 +01:00
parent f74e60c024
commit 08f8eeb2e6
2 changed files with 3 additions and 2 deletions

View File

@@ -172,7 +172,7 @@ function recursiveBase64StrToArrayBuffer(obj) {
// TFA, CSRF, Alerts in footer.inc.php
// Other general functions in mailcow.js
{% for alert_type, alert_msg in alerts %}
mailcow_alert_box('{{ alert_msg|raw|replace({"\n": "", "\r": "", "\t": "<br>"}) }}', '{{ alert_type }}');
mailcow_alert_box('{{ alert_msg|raw }}', '{{ alert_type }}');
{% endfor %}
// Confirm TFA modal