delahaye / dlh_googlemaps

Google Maps Extension für Contao
20 stars 26 forks source link

javascript breaks when marker.title or marker.linkTitle contains double quotes #52

Closed cdxOo closed 8 years ago

cdxOo commented 9 years ago

how to reproduce: add a marker that contains double quotes (") -> javascript breaks

how to fix: i quick-fixed it by adding "addSlashes" to the relevant lines in dlh_googlemaps/templates/elements/dlh_marker.html5/xhtml respectively but dlh_googlemaps/classes/Googlemap.php::getElementData() obviously is the proper place

delahaye commented 8 years ago

You're right, thanks. Will be fixed in the next version.