[WordPressBridge] fix fatal errors
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
b5358d6cea
commit
4c3b80fca9
1 changed files with 8 additions and 3 deletions
|
@ -49,13 +49,18 @@ class WordPressBridge extends FeedExpander {
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function collectData(){
|
public function getURI(){
|
||||||
if(substr($this->getInput(url),0,srlen('http'))!=='http'){
|
$url = $this->getInput('url');
|
||||||
// just in case someone find a way to access local files by playing with the url
|
return $url;
|
||||||
returnClientError('The url parameter must either refer to http or https protocol.');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->collectExpandableDatas($this->getURI().'/feed/atom');
|
public function collectData(){
|
||||||
|
if(substr($this->getInput('url'),0,strlen('http'))!=='http'){
|
||||||
|
// just in case someone find a way to access local files by playing with the url
|
||||||
|
$this->returnClientError('The url parameter must either refer to http or https protocol.');
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->collectExpandableDatas($this->getURI().'/feed/atom/');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue