1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Fix for double-encoding in admin logs.

This commit is contained in:
Cameron
2019-04-01 12:27:03 -07:00
parent 8fd3b37649
commit 05fda0cf1f

View File

@@ -574,10 +574,13 @@ class e_parse extends e_parser
else // add entities for everything. we want to save the code.
{
$search = array('>', '<');
$replace = array('>', '<');
$data = str_replace($search, $replace, $data); // prevent &amp;gt; etc.
$data = htmlspecialchars($data, ENT_QUOTES, 'UTF-8');
$data = str_replace('\\', '&#092;', $data);
$ret = preg_replace("/&amp;#(\d*?);/", "&#\\1;", $data);
}