summaryrefslogtreecommitdiffstats
path: root/inc/util.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2016-08-15 16:55:33 +0200
committerSimon Rettberg2016-08-15 16:55:33 +0200
commitb0ec6236bb55a887c2bdbeaed7200a890624da02 (patch)
tree9148119c2710b4c57eedb189592c770946776b8d /inc/util.inc.php
parent[util] traceError(): Don't output html junk if running via CLI (diff)
downloadslx-admin-b0ec6236bb55a887c2bdbeaed7200a890624da02.tar.gz
slx-admin-b0ec6236bb55a887c2bdbeaed7200a890624da02.tar.xz
slx-admin-b0ec6236bb55a887c2bdbeaed7200a890624da02.zip
[util] Also escape the print_r output when rendering HTML
Diffstat (limited to 'inc/util.inc.php')
-rw-r--r--inc/util.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/util.inc.php b/inc/util.inc.php
index bee07765..a9ae384c 100644
--- a/inc/util.inc.php
+++ b/inc/util.inc.php
@@ -44,7 +44,7 @@ class Util
echo "<h2>Stack Trace</h2>";
echo '<pre>', self::formatBacktraceHtml(debug_backtrace()), '</pre>';
echo "<h2>Globals</h2><pre>";
- echo print_r($GLOBALS, true);
+ echo htmlspecialchars(print_r($GLOBALS, true));
echo '</pre>';
} else {
echo <<<SADFACE