This commit is contained in:
Roman Kelesidis 2023-10-26 16:14:20 +07:00
parent 41004eb88a
commit 33d3416fe5
2 changed files with 3 additions and 3 deletions

View File

@ -214,7 +214,7 @@ class ajax_common
function ajax_die($error_msg, $error_code = E_AJAX_GENERAL_ERROR)
{
$this->response['error_code'] = $error_code;
$this->response['error_msg'] = $error_msg;
$this->response['error_msg'] = strip_tags(preg_replace('#<br\s*/?>#i', "\n", $error_msg));
$this->send();
}
@ -315,7 +315,7 @@ class ajax_common
if (empty($confirm_msg)) $this->ajax_die('false');
$this->response['prompt_confirm'] = 1;
$this->response['confirm_msg'] = $confirm_msg;
$this->response['confirm_msg'] = strip_tags(preg_replace('#<br\s*/?>#i', "\n", $confirm_msg));
$this->send();
}

View File

@ -1805,7 +1805,7 @@ function bb_die ($msg_text)
if (defined('IN_AJAX'))
{
$ajax->ajax_die(strip_tags(preg_replace('#<br\s*/?>#i', "\n", $msg_text)));
$ajax->ajax_die($msg_text);
}
// Check