Skip to content

Commit c1d5f59

Browse files
authored
Merge pull request #175 from appwrite/fix-cli-escape-issue
feat: fix for unescaped space in strings
2 parents 896bb5d + 360d7db commit c1d5f59

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

templates/cli/src/Client.php.twig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,13 @@ class Client
200200
$responseType = '';
201201
$responseBody = '';
202202
203+
$params = array_map(function ($param) {
204+
if (is_string($param)) {
205+
$param = \urldecode($param);
206+
}
207+
return $param;
208+
}, $params);
209+
203210
switch ($headers['content-type']) {
204211
case 'application/json':
205212
$query = json_encode($params);

0 commit comments

Comments
 (0)