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:
@@ -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 &gt; etc.
|
||||
|
||||
$data = htmlspecialchars($data, ENT_QUOTES, 'UTF-8');
|
||||
$data = str_replace('\\', '\', $data);
|
||||
|
||||
|
||||
$ret = preg_replace("/&#(\d*?);/", "&#\\1;", $data);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user