Skip to content

Commit

Permalink
Fix marketplace might not filter correctly on some servers (#10985)
Browse files Browse the repository at this point in the history
* fix marketplace might not filter correctly on some servers

* make sure & is used as a separator
  • Loading branch information
tsteur authored Dec 9, 2016
1 parent 34bbf67 commit 17230c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public static function sendHttpRequestBy(
$fileLength = 0;

if (!empty($requestBody) && is_array($requestBody)) {
$requestBody = http_build_query($requestBody);
$requestBody = http_build_query($requestBody, '', '&');
}

// Piwik services behave like a proxy, so we should act like one.
Expand Down
2 changes: 1 addition & 1 deletion plugins/Marketplace/Api/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function fetch($action, $params)
{
$endpoint = sprintf('%s/api/%s/', $this->domain, $this->version);

$query = http_build_query($params);
$query = http_build_query($params, '', '&');
$url = sprintf('%s%s?%s', $endpoint, $action, $query);

$response = $this->download($url);
Expand Down

0 comments on commit 17230c4

Please sign in to comment.