Skip to content

Commit 4e0fefa

Browse files
committed
Adds parameters to http_build_query
Fixes the issue of sending &amp to servers. More information is at http://php.net/manual/en/function.http-build-query.php#102324
1 parent 987c23f commit 4e0fefa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Curl/Curl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function buildPostData($data)
109109
$data = $json_str;
110110
}
111111
} else {
112-
$data = http_build_query($data);
112+
$data = http_build_query($data, '', '&');
113113
}
114114
}
115115
}

0 commit comments

Comments
 (0)