Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Explicitly use '&' in http_build_query() (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored and J7mbo committed Jul 25, 2016
1 parent 1dd06d7 commit 3889ec7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TwitterAPIExchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public function setGetfield($string)
}
}

$this->getfield = '?' . http_build_query($params);
$this->getfield = '?' . http_build_query($params, '', '&');

return $this;
}
Expand Down Expand Up @@ -298,7 +298,7 @@ public function performRequest($return = true, $curlOptions = array())

if (!is_null($postfields))
{
$options[CURLOPT_POSTFIELDS] = http_build_query($postfields);
$options[CURLOPT_POSTFIELDS] = http_build_query($postfields, '', '&');
}
else
{
Expand Down

0 comments on commit 3889ec7

Please sign in to comment.