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 pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users