diff --git a/data/web/inc/footer.inc.php b/data/web/inc/footer.inc.php index 3d4b3c33..4d0a18b4 100644 --- a/data/web/inc/footer.inc.php +++ b/data/web/inc/footer.inc.php @@ -16,7 +16,7 @@ if (is_array($alertbox_log_parser)) { } $alert = array_filter(array_unique($alerts)); foreach($alert as $alert_type => $alert_msg) { - $alerts[$alert_type] = json_encode(implode('
', $alert_msg)); + $alerts[$alert_type] = implode('
', $alert_msg); } unset($_SESSION['return']); } diff --git a/data/web/templates/base.twig b/data/web/templates/base.twig index 41816cb2..b70230ad 100644 --- a/data/web/templates/base.twig +++ b/data/web/templates/base.twig @@ -170,7 +170,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 }}", "{{ alert_type }}"); + mailcow_alert_box('{{ alert_msg|raw }}', '{{ alert_type }}'); {% endfor %} // Confirm TFA modal