It's indeed an encoding error. But there's not a single htmlspecialchars(). In the following file, on line 252, we create a POST body with the mime-type "application/x-www-form-urlencoded" (just like a URL query string) by using the http_build_query() function:m4rcel wrote:So there seems to be an htmlspecialchars() too much somewhere ^^
http://code.google.com/p/trackmania-ws- ... nt.php#252
Maybe you can try to add " var_dump($params);exit; " just after that (just before the // FIXME). In the output, are the "&" encoded as "&" or are they still "&" ?
You can also try to replace
Code: Select all
http_build_query(array(.......));
Code: Select all
http_build_query(array(.....), '', '&');
The default value of the PHP directive "arg_separator.output" is "&" ; Maybe on your system it's "&", that would explain this behaviour.