dlsc-software-consulting-gmbh / GMapsFX

Java API for using Google Maps within a JavaFX application.
http://rterp.github.io/GMapsFX/
Apache License 2.0
319 stars 119 forks source link

GeocoderRequest doesn't escape single quote characters #157

Open mimenz opened 6 years ago

mimenz commented 6 years ago

If you have single quotes in your address string the "convertToJavascriptString" method in GeocoderRequest class doesn't escape single quotes. The resulting invalid geocoding request doesn't return.

As a workaround you can escape the single quotes (') with a leading backslash (\') - in Java of course by writing "\\'".

It would be great if the escaping could be done inside the method.

BTW: I think the GeocoderComponentRestrictions class is affected, too.