From 8f17caeedcf6c39530e72411a28ec53a4ecd330e Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sun, 25 May 2014 08:27:47 +0300 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- worldmap-save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldmap-save.c b/worldmap-save.c index e7448fd4e..c223ca333 100644 --- a/worldmap-save.c +++ b/worldmap-save.c @@ -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: '
'+'
'+'
'+'
"); - put_format(b, "

%s

", dive->location); + put_format(b, "

%s

", quote(dive->location)); put_HTML_date(b, dive); put_duration(b, dive->duration, "

Duration: ", " min

"); put_depth(b, dive->maxdepth, "

Max Depth: ", " m

");