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:
@@ -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 .= "
|
||||
|
Reference in New Issue
Block a user