diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2011-09-19 17:33:18 +0200 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2011-09-19 17:37:16 +0200 |
| commit | fc2af460ee2112ee5bcbd8076441ebcf8aea9513 (patch) | |
| tree | edbbb0c0e7116daf8c1210d773de8ff2ef392770 /phpBB | |
| parent | 19ce73c88496ca76342c2a07c1b01dc25392c6ff (diff) | |
| download | forums-fc2af460ee2112ee5bcbd8076441ebcf8aea9513.tar forums-fc2af460ee2112ee5bcbd8076441ebcf8aea9513.tar.gz forums-fc2af460ee2112ee5bcbd8076441ebcf8aea9513.tar.bz2 forums-fc2af460ee2112ee5bcbd8076441ebcf8aea9513.tar.xz forums-fc2af460ee2112ee5bcbd8076441ebcf8aea9513.zip | |
[ticket/10370] Explain that we are not the ones hiding backtrace pieces.
Taken from 2db54cf7e809e731e4440377bcc06e2aa05f190d.
PHPBB3-10370
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/includes/functions.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index ef13b74f0c..d77517f2da 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -3400,7 +3400,8 @@ function get_backtrace() foreach ($backtrace as $trace) { // Strip the current directory from path - $trace['file'] = (empty($trace['file'])) ? '' : phpbb_filter_root_path($trace['file']); + $trace['file'] = (empty($trace['file'])) ? '(not given by php)' : htmlspecialchars(phpbb_filter_root_path($trace['file'])); + $trace['line'] = (empty($trace['line'])) ? '(not given by php)' : $trace['line']; // Only show function arguments for include etc. // Other parameters may contain sensible information @@ -3414,7 +3415,7 @@ function get_backtrace() $trace['type'] = (!isset($trace['type'])) ? '' : $trace['type']; $output .= '<br />'; - $output .= '<b>FILE:</b> ' . htmlspecialchars($trace['file']) . '<br />'; + $output .= '<b>FILE:</b> ' . $trace['file'] . '<br />'; $output .= '<b>LINE:</b> ' . ((!empty($trace['line'])) ? $trace['line'] : '') . '<br />'; $output .= '<b>CALL:</b> ' . htmlspecialchars($trace['class'] . $trace['type'] . $trace['function']); |
