Fix space in URL resulting in API errors.
This commit is contained in:
parent
779b638fb4
commit
2d8f4dc3c5
1 changed files with 2 additions and 2 deletions
|
@ -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.');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue