From c803396d7e9094a1eb8c5df8cc4d61b4552bf6d9 Mon Sep 17 00:00:00 2001 From: Teromene Date: Thu, 9 Mar 2017 22:27:14 +0000 Subject: [PATCH] Correct phpcs check. --- index.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index b989212c..c65917a6 100644 --- a/index.php +++ b/index.php @@ -69,9 +69,12 @@ if(ini_get('allow_url_fopen') !== "1") die('"allow_url_fopen" is not set to "1". Please check "php.ini'); // FIXME : beta test UA spoofing, please report any blacklisting by PHP-fopen-unfriendly websites -ini_set('user_agent', 'Mozilla/5.0(X11; Linux x86_64; rv:30.0) '. - 'Gecko/20121202 Firefox/30.0(rss-bridge/0.1; '. - ' +https://github.com/RSS-Bridge/rss-bridge)'); + +$userAgent = 'Mozilla/5.0(X11; Linux x86_64; rv:30.0)'; +$userAgent .= ' Gecko/20121202 Firefox/30.0(rss-bridge/0.1;'; +$userAgent .= '+https://github.com/RSS-Bridge/rss-bridge)'; + +ini_set('user_agent', $userAgent); // default whitelist $whitelist_file = './whitelist.txt';