From 100f3cd56d8a972af107c0f4e63514601c916b83 Mon Sep 17 00:00:00 2001 From: Teromene Date: Fri, 3 Mar 2017 12:10:23 +0000 Subject: [PATCH] Fix Webfailbridge, change the user-agent used for the request. --- bridges/WebfailBridge.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bridges/WebfailBridge.php b/bridges/WebfailBridge.php index 68ceffaa..d4a6f130 100644 --- a/bridges/WebfailBridge.php +++ b/bridges/WebfailBridge.php @@ -41,6 +41,8 @@ class WebfailBridge extends BridgeAbstract { } public function collectData(){ + + 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)'); $html = getSimpleHTMLDOM($this->getURI() . $this->getInput('type')); $type = array_search($this->getInput('type'),