From f91309c7e4560e25353ccee5b85f145eae4741c7 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Sat, 12 Aug 2017 19:15:16 +0200 Subject: [PATCH] [index] Use constant WHITELIST_FILE all the way --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 6eaab42..fe9da76 100644 --- a/index.php +++ b/index.php @@ -71,7 +71,7 @@ if(!is_writable(CACHE_DIR)) die('RSS-Bridge does not have write permissions for ' . CACHE_DIR . '!'); // Check whitelist file permissions (only in DEBUG mode) -if(!file_exists('./whitelist.txt') && !is_writable('./')) +if(!file_exists(WHITELIST_FILE) && !is_writable(dirname(WHITELIST_FILE))) die('RSS-Bridge does not have write permissions for ' . WHITELIST_FILE . '!'); // FIXME : beta test UA spoofing, please report any blacklisting by PHP-fopen-unfriendly websites