On 06/16/2012 02:19 AM, Betacommand wrote:
when passing parameters "+" is often treated as " " (a space) try passing "\+" instead of "+" or what ever the equivalent escape is

That doesn't seem to help either, the token recieved by api.php via the urlencoded a25a10589a377fc4d75e5e0dcfb209c2%2B%5C instead of a25a10589a377fc4d75e5e0dcfb209c2+\ or a25a10589a377fc4d75e5e0dcfb209c2\+\\ shows the token to be something else when $_POST is printed out.
Array
(
    [action] => upload
    [url] => http://www.google.com/intl/en_ALL/images/logo.gif
    [token] => a25a10589a377fc4d75e5e0dcfb209c2+\
    [format] => json
)
compared to
Array
(
    [action] => upload
    [url] => http://www.google.com/intl/en_ALL/images/logo.gif
    [token] => a25a10589a377fc4d75e5e0dcfb209c2+\
    [format] => json
)

or

Array
(
    [action] => upload
    [url] => http://www.google.com/intl/en_ALL/images/logo.gif
    [token] => a25a10589a377fc4d75e5e0dcfb209c2\ \
    [format] => json
)

respectively.

Thanks,

--
Regards,
Suryajith Chillara.


_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to