mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/10370] Explain that we are not the ones hiding backtrace pieces.
Taken from 2db54cf7e809e731e4440377bcc06e2aa05f190d. PHPBB3-10370
This commit is contained in:
parent
19ce73c884
commit
fc2af460ee
1 changed files with 3 additions and 2 deletions
|
@ -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']);
|
||||||
|
|
Loading…
Add table
Reference in a new issue