diff options
author | Simon Rettberg | 2016-08-15 16:55:33 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-08-15 16:55:33 +0200 |
commit | b0ec6236bb55a887c2bdbeaed7200a890624da02 (patch) | |
tree | 9148119c2710b4c57eedb189592c770946776b8d | |
parent | [util] traceError(): Don't output html junk if running via CLI (diff) | |
download | slx-admin-b0ec6236bb55a887c2bdbeaed7200a890624da02.tar.gz slx-admin-b0ec6236bb55a887c2bdbeaed7200a890624da02.tar.xz slx-admin-b0ec6236bb55a887c2bdbeaed7200a890624da02.zip |
[util] Also escape the print_r output when rendering HTML
-rw-r--r-- | inc/util.inc.php | 2 |
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 |