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

Fixes faulty parsing of _GET when debug is activated. Pref editor will now use var_export on arrays when debug mode is active.

This commit is contained in:
Cameron
2021-02-06 12:48:19 -08:00
parent 10ca7acdd5
commit 0fd7ee6482
3 changed files with 58 additions and 20 deletions

View File

@@ -1447,7 +1447,16 @@ class system_tools
foreach($spref as $key => $val)
{
$ptext = (is_array($val)) ? "<pre>".htmlentities(print_r($val, TRUE))."</pre>" : htmlspecialchars($val, ENT_QUOTES, 'utf-8');
if(is_array($val))
{
$varView = deftrue('e_DEBUG') ? var_export($val, true): print_r($val, true);
$ptext = "<pre>".htmlentities($varView)."</pre>" ;
}
else
{
$ptext = htmlspecialchars($val, ENT_QUOTES, 'utf-8');
}
$ptext = $tp->textclean($ptext, 80);
$text .= "