webempoweredchurch / wec_map

Mapping extension for TYPO3 that connects to geocoding databases and Google Maps API.
http://webempoweredchurch.org
6 stars 3 forks source link

newline breaks title/desc JS #7

Open ckoehler opened 12 years ago

ckoehler commented 12 years ago

i fixed it in class.tx_wecmap_marker_google.php:97,101,106,109 to change addslasshes to addcslashes($value, "'\0\") and remove line 138 with

return 'WecMap.addBubble("' . $this->mapName . '", ' . $this->groupId . ', ' . $this->index . ', [\'' . implode('\',\'', $this->tabLabels) . '\'], ' . json_encode($markerContent) . ');';

and line 160

return 'WecMap.addMarker("' . $this->mapName. '", ' . $this->index . ', [' . $this->latitude . ',' . $this->longitude . '], "' . $this->iconID . '", \''. json_encode(htmlspecialchars(strip_tags($this->title0))) .'\', '.$this->groupId.', \''.$this->getUserAddress().'\');';