Skip to content

Commit 45bfef7

Browse files
author
Benjamin Wilson Friedman
authored
Merge pull request #300 from acinader/consistent-appersand-in-urls
Always use '&' instead of relying on ini for query strings.
2 parents 2c64516 + 1609102 commit 45bfef7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Parse/HttpClients/ParseCurlHttpClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function send($url, $method = 'GET', $data = array())
178178

179179
if($method == "GET" && !empty($data)) {
180180
// handle get
181-
$url .= '?'.http_build_query($data);
181+
$url .= '?'.http_build_query($data, null, '&');
182182

183183
} else if($method == "POST") {
184184
// handle post
@@ -381,4 +381,4 @@ private function needsCurlProxyFix()
381381

382382
}
383383

384-
}
384+
}

src/Parse/ParseQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ private function buildQueryString($queryOptions)
365365
$queryOptions['where'] = json_encode($queryOptions['where']);
366366
}
367367

368-
return http_build_query($queryOptions);
368+
return http_build_query($queryOptions, null, '&');
369369
}
370370

371371
/**

0 commit comments

Comments
 (0)