1
0
Fork 0
forked from blallo/rss-bridge

Fix space in URL resulting in API errors.

This commit is contained in:
teromene 2018-05-05 18:10:19 +01:00
parent 779b638fb4
commit 2d8f4dc3c5

View file

@ -31,10 +31,10 @@ class ElloBridge extends BridgeAbstract {
);
if(!empty($this->getInput('u'))) {
$postData = getContents(self::URI . 'api/v2/users/~' . $this->getInput('u') . '/posts', $header) or
$postData = getContents(self::URI . 'api/v2/users/~' . urlencode($this->getInput('u')) . '/posts', $header) or
returnServerError('Unable to query Ello API.');
} else {
$postData = getContents(self::URI . 'api/v2/posts?terms=' . $this->getInput('s'), $header) or
$postData = getContents(self::URI . 'api/v2/posts?terms=' . urlencode($this->getInput('s')), $header) or
returnServerError('Unable to query Ello API.');
}