From be98ad161adbc5a0da180aefbb249eb6934d1593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Sun, 21 Aug 2016 17:23:04 +0200 Subject: [PATCH] [FuturaSciencesBridge] fix undefined $url variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/FuturaSciencesBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/FuturaSciencesBridge.php b/bridges/FuturaSciencesBridge.php index be13416..c15e1b1 100644 --- a/bridges/FuturaSciencesBridge.php +++ b/bridges/FuturaSciencesBridge.php @@ -165,12 +165,12 @@ class FuturaSciencesBridge extends BridgeAbstract { return ''; } + $url = $this->getURI().'rss/'.$param['feed'].'.xml'; if (empty($param['feed'])) $this->returnClientError('Please select a feed to display.'.$url); if ($param['feed'] !== preg_replace('/[^a-zA-Z-\/]+/', '', $param['feed']) || substr_count($param['feed'], '/') > 1 || strlen($param['feed'] > 64)) $this->returnClientError('Invalid "feed" parameter.'.$url); - $url = $this->getURI().'rss/'.$param['feed'].'.xml'; $html = $this->getSimpleHTMLDOM($url) or $this->returnServerError('Could not request Futura-Sciences: '.$url); $limit = 0;