[FuturaSciencesBridge] fix undefined $url variable
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
5410392968
commit
be98ad161a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue