mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-09 08:50:05 +08:00
[web] alerts - fixed double quotes and escaped html
Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
This commit is contained in:
parent
aa8d44f91e
commit
a7612e6c39
@ -16,7 +16,7 @@ if (is_array($alertbox_log_parser)) {
|
|||||||
}
|
}
|
||||||
$alert = array_filter(array_unique($alerts));
|
$alert = array_filter(array_unique($alerts));
|
||||||
foreach($alert as $alert_type => $alert_msg) {
|
foreach($alert as $alert_type => $alert_msg) {
|
||||||
$alerts[$alert_type] = json_encode(implode('<hr class="alert-hr">', $alert_msg));
|
$alerts[$alert_type] = implode('<hr class="alert-hr">', $alert_msg);
|
||||||
}
|
}
|
||||||
unset($_SESSION['return']);
|
unset($_SESSION['return']);
|
||||||
}
|
}
|
||||||
|
@ -170,7 +170,7 @@ function recursiveBase64StrToArrayBuffer(obj) {
|
|||||||
// TFA, CSRF, Alerts in footer.inc.php
|
// TFA, CSRF, Alerts in footer.inc.php
|
||||||
// Other general functions in mailcow.js
|
// Other general functions in mailcow.js
|
||||||
{% for alert_type, alert_msg in alerts %}
|
{% for alert_type, alert_msg in alerts %}
|
||||||
mailcow_alert_box("{{ alert_msg }}", "{{ alert_type }}");
|
mailcow_alert_box('{{ alert_msg|raw }}', '{{ alert_type }}');
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
// Confirm TFA modal
|
// Confirm TFA modal
|
||||||
|
Loading…
Reference in New Issue
Block a user