parent
f74e60c024
commit
08f8eeb2e6
|
@ -12,7 +12,8 @@ $alertbox_log_parser = alertbox_log_parser($_SESSION);
|
|||
$alerts = [];
|
||||
if (is_array($alertbox_log_parser)) {
|
||||
foreach ($alertbox_log_parser as $log) {
|
||||
$alerts[trim($log['type'], '"')][] = trim($log['msg'], '"');
|
||||
$message = strtr($log['msg'], ["\n" => '', "\r" => '', "\t" => '<br>']);
|
||||
$alerts[trim($log['type'], '"')][] = trim($message, '"');
|
||||
}
|
||||
$alert = array_filter(array_unique($alerts));
|
||||
foreach($alert as $alert_type => $alert_msg) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue