mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Prevent function arguments from being exposed in the error log
Also: Produce backtrace when a regular error occurs Also: Remove unnecessary check for DEBUG_BACKTRACE_IGNORE_ARGS (This is not necessary in PHP > 5.3.6)
This commit is contained in:
parent
7484b67b3a
commit
6791208ae1
3 changed files with 26 additions and 10 deletions
|
|
@ -401,7 +401,7 @@ class FileHandler
|
|||
|
||||
if (config('debug.enabled') && in_array('slow_remote_requests', config('debug.display_content')))
|
||||
{
|
||||
$bt = defined('DEBUG_BACKTRACE_IGNORE_ARGS') ? debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS) : debug_backtrace();
|
||||
$bt = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS);
|
||||
foreach($bt as $no => $call)
|
||||
{
|
||||
if(strncasecmp($call['function'], 'getRemote', 9) === 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue