From 2d8f4dc3c5c27f5fd169cd48c1d9f9c6bc49a70c Mon Sep 17 00:00:00 2001 From: teromene Date: Sat, 5 May 2018 18:10:19 +0100 Subject: [PATCH] Fix space in URL resulting in API errors. --- bridges/ElloBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/ElloBridge.php b/bridges/ElloBridge.php index 28aeb5f..c0e266e 100644 --- a/bridges/ElloBridge.php +++ b/bridges/ElloBridge.php @@ -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.'); }