austgl / simplepo

Automatically exported from code.google.com/p/simplepo
0 stars 0 forks source link

json string can't be decoded due to backslashes (magic quotes) #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
json_decode may not work on systems with magic quotes on (most setups are
configured this way I believe). I had to fix JSON_RPC::getResponse function
in message_service.php as

$request = json_decode(stripslashes($request_string),true);

and solved my issue. You should perhaps use a more generic code like

$request= json_decode(get_magic_quotes_gpc() ?
stripslashes($request_string) : $request_string);

Incredibly useful software, by the way, it saved my life :). Thank you.

Original issue reported on code.google.com by egema...@gmail.com on 18 Sep 2009 at 2:00

GoogleCodeExporter commented 9 years ago
Thanks for the report, 

I have added code to automatically strip slashes everywhere.

Original comment by JCampbe...@gmail.com on 20 Nov 2009 at 7:04