From 4e0fefac1271b54a2742ea468c26fd811f1ba7dc Mon Sep 17 00:00:00 2001 From: Drew Brigham Date: Thu, 26 Mar 2015 07:54:22 -0400 Subject: [PATCH] Adds parameters to http_build_query Fixes the issue of sending & to servers. More information is at http://php.net/manual/en/function.http-build-query.php#102324 --- src/Curl/Curl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index 9c79cf2..da218ed 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -109,7 +109,7 @@ class Curl $data = $json_str; } } else { - $data = http_build_query($data); + $data = http_build_query($data, '', '&'); } } }