Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit 27242635 authored by dneil-storm's avatar dneil-storm Committed by GitHub
Browse files

Added addslashes to all-circuits-map.php

parent 01a1fe54
No related branches found
No related tags found
No related merge requests found
......@@ -84,12 +84,12 @@ elseif ($locA->name!=="/" && $locB->name!=="/") {
$location->description = str_replace(array("\r\n","\n","\r"), "<br>", $location->description );
$html[] = "map.addMarker({";
$html[] = " title: '$location->name',";
$html[] = " title: '". addslashes($location->name). "',";
$html[] = " lat: '$location->lat',";
$html[] = " lng: '$location->long',";
$html[] = $k % 2 == 0 ? " icon: 'css/".SCRIPT_PREFIX."/images/red-dot.png'," : " icon: 'css/".SCRIPT_PREFIX."/images/blue-dot.png',";
$html[] = " infoWindow: {";
$html[] = " content: '<h5><a href=\'".create_link("tools", "locations", $location->id)."\'>$location->name</a></h5>$location->description'";
$html[] = " content: '<h5><a href=\'".create_link("tools", "locations", $location->id)."\'>". addslashes($location->name). "</a></h5>$location->description'";
$html[] = "}";
$html[] = "});";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment