mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Location must be quoted on worldmap export
User supplied text fields must be quoted on worldmap export. Without quoting the HTML is broken e.g. with location "Angel's Window" Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b88e6dc5fa
commit
8f17caeedc
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ void writeMarkers(struct membuffer *b, const bool selected_only)
|
|||
put_degrees(b, dive->latitude, "temp = new google.maps.Marker({position: new google.maps.LatLng(", "");
|
||||
put_degrees(b, dive->longitude, ",", ")});\n");
|
||||
put_string(b, "markers.push(temp);\ntempinfowindow = new google.maps.InfoWindow({content: '<div id=\"content\">'+'<div id=\"siteNotice\">'+'</div>'+'<div id=\"bodyContent\">");
|
||||
put_format(b, "<p><b>%s</b></p>", dive->location);
|
||||
put_format(b, "<p><b>%s</b></p>", quote(dive->location));
|
||||
put_HTML_date(b, dive);
|
||||
put_duration(b, dive->duration, "<p>Duration: ", " min</p>");
|
||||
put_depth(b, dive->maxdepth, "<p>Max Depth: ", " m</p>");
|
||||
|
|
Loading…
Reference in a new issue