Hi,
Since jQuery 1.4.2 I had to change in incphp/x_ajax/x_search.php the
JSON string returned (just before "echo"):
$searchJson = str_replace("\\'", "'", $searchJson);
I have the options_array2json function with "addslashes".
I think it is the only change I made concerning this issue (simple quotes).
Thomas
Le 10/04/2011 23:27, Armin Burger a écrit :
>
> On 08/04/2011 09:18, moka61 wrote:
>>
>> Thank you for the quick response.
>>
>> I removed the apostrophe from the name VITO D'ASIO and the query works
>> correctly. The escape is made only in the second part of the key JSON.
>>
> for p.mapper 4.1 try the following:
>
> in incphp/query/search.php->options_array2json() replace line 855
> $json .= "$sep \"" . $k . "\":" . "\"". addslashes($v) . "\"";
> with
> $json .= "$sep \"" . $k . "\":" . "\"". $v . "\"";
>
> and see if it solves the problem. I have not found any negative
> side-effects so far for this workaround. But I guess there should be a
> clean way to escape reserved JSON characters for both the key and the
> value of the options (it's not very likely that e.g. fields in
> shapefiles contain backslashes or double quotes, but who knows....)
>
> armin
>
>
> ------------------------------------------------------------------------------
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> _______________________________________________
> pmapper-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users