webempoweredchurch/wec_map — Issue #7: newline breaks title/desc JS
Author: ckoehler
Created: 2011-11-30 03:35:50+00:00
State: open

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().'\');';