Skip to content

Commit 1434c04

Browse files
committed
Fix URL encoding to match the Java encoding standards.
1 parent 4d731c2 commit 1434c04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parameters/BaseParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ abstract public function getHTTPQuery();
3737
*/
3838
protected function buildHTTPQuery($array)
3939
{
40-
return http_build_query(array_filter($array), '', '&', \PHP_QUERY_RFC3986);
40+
return str_replace(array('%20', '!', "'", "(", ")", '*'), array('+', '%21', "%27", "%28", "%29", '%2A'), http_build_query(array_filter($array), '', '&', \PHP_QUERY_RFC3986));
4141
}
4242
}

0 commit comments

Comments
 (0)