[ticket/10370] Explain that we are not the ones hiding backtrace pieces.

Taken from 2db54cf7e809e731e4440377bcc06e2aa05f190d.

PHPBB3-10370
This commit is contained in:
Andreas Fischer 2011-09-19 17:33:18 +02:00
parent 19ce73c884
commit fc2af460ee

View file

@ -3400,7 +3400,8 @@ function get_backtrace()
foreach ($backtrace as $trace) foreach ($backtrace as $trace)
{ {
// Strip the current directory from path // 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. // Only show function arguments for include etc.
// Other parameters may contain sensible information // Other parameters may contain sensible information
@ -3414,7 +3415,7 @@ function get_backtrace()
$trace['type'] = (!isset($trace['type'])) ? '' : $trace['type']; $trace['type'] = (!isset($trace['type'])) ? '' : $trace['type'];
$output .= '<br />'; $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>LINE:</b> ' . ((!empty($trace['line'])) ? $trace['line'] : '') . '<br />';
$output .= '<b>CALL:</b> ' . htmlspecialchars($trace['class'] . $trace['type'] . $trace['function']); $output .= '<b>CALL:</b> ' . htmlspecialchars($trace['class'] . $trace['type'] . $trace['function']);