From 3889ec754b0ce8ed7008cb330f89cc964a4a4ddd Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 26 Jul 2016 00:07:41 +0300 Subject: [PATCH] Explicitly use '&' in http_build_query() (#200) --- TwitterAPIExchange.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TwitterAPIExchange.php b/TwitterAPIExchange.php index d9aae9d..299b547 100755 --- a/TwitterAPIExchange.php +++ b/TwitterAPIExchange.php @@ -166,7 +166,7 @@ public function setGetfield($string) } } - $this->getfield = '?' . http_build_query($params); + $this->getfield = '?' . http_build_query($params, '', '&'); return $this; } @@ -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 {