mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
[ticket/10370] Add require_once to whitelisted functions.
PHPBB3-10370
This commit is contained in:
parent
7965387201
commit
8a84f42f7d
1 changed files with 1 additions and 1 deletions
|
@ -3405,7 +3405,7 @@ function get_backtrace()
|
|||
// Only show function arguments for include etc.
|
||||
// Other parameters may contain sensible information
|
||||
$argument = '';
|
||||
if (!empty($trace['args'][0]) && in_array($trace['function'], array('include', 'require', 'include_once')))
|
||||
if (!empty($trace['args'][0]) && in_array($trace['function'], array('include', 'require', 'include_once', 'require_once')))
|
||||
{
|
||||
$argument = htmlspecialchars($trace['args'][0]);
|
||||
$argument = phpbb_filter_root_path($argument);
|
||||
|
|
Loading…
Add table
Reference in a new issue