mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-06-29 00:10:07 +02:00
refactor: general code base refactor (#2950)
* refactor * fix: bug in previous refactor * chore: exclude phpcompat sniff due to bug in phpcompat * fix: do not leak absolute paths * refactor/fix: batch extensions checking, fix DOS issue
This commit is contained in:
parent
b042412416
commit
2bbce8ebef
45 changed files with 679 additions and 827 deletions
|
@ -64,8 +64,8 @@ class Debug
|
|||
{
|
||||
static $firstCall = true; // Initialized on first call
|
||||
|
||||
if ($firstCall && file_exists(PATH_ROOT . 'DEBUG')) {
|
||||
$debug_whitelist = trim(file_get_contents(PATH_ROOT . 'DEBUG'));
|
||||
if ($firstCall && file_exists(__DIR__ . '/../DEBUG')) {
|
||||
$debug_whitelist = trim(file_get_contents(__DIR__ . '/../DEBUG'));
|
||||
|
||||
self::$enabled = empty($debug_whitelist) || in_array(
|
||||
$_SERVER['REMOTE_ADDR'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue