forked from blallo/rss-bridge
[pull/beta] UA spoofing
This commit is contained in:
parent
1e40d6f492
commit
13da0112f2
1 changed files with 6 additions and 3 deletions
|
@ -15,6 +15,10 @@ date_default_timezone_set('UTC');
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
//ini_set('display_errors','1'); error_reporting(E_ALL); // For debugging only.
|
//ini_set('display_errors','1'); error_reporting(E_ALL); // For debugging only.
|
||||||
|
|
||||||
|
// 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/sebsauvage/rss-bridge)');
|
||||||
|
// -------
|
||||||
|
|
||||||
try{
|
try{
|
||||||
require_once __DIR__ . '/lib/RssBridge.php';
|
require_once __DIR__ . '/lib/RssBridge.php';
|
||||||
|
|
||||||
|
@ -32,8 +36,7 @@ try{
|
||||||
$format = $_REQUEST['format'];
|
$format = $_REQUEST['format'];
|
||||||
unset($_REQUEST['format']);
|
unset($_REQUEST['format']);
|
||||||
|
|
||||||
// FIXME : necessary ?
|
|
||||||
// ini_set('user_agent', 'Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0');
|
|
||||||
|
|
||||||
$cache = Cache::create('FileCache');
|
$cache = Cache::create('FileCache');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue