From ff44e2bf477b355c845e38a7393909d30cf62405 Mon Sep 17 00:00:00 2001 From: Mike Chagnon Date: Tue, 17 Mar 2026 19:40:08 -0700 Subject: [PATCH] handle quotes in a datasets title --- ifcbdb/templates/dashboard/bin.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ifcbdb/templates/dashboard/bin.html b/ifcbdb/templates/dashboard/bin.html index 5d993fe0..f859acd9 100644 --- a/ifcbdb/templates/dashboard/bin.html +++ b/ifcbdb/templates/dashboard/bin.html @@ -1421,7 +1421,7 @@ }) var title = ""; - {% if dataset %}title += " » {{ dataset.title }}";{% endif %} + {% if dataset %}title += " » {{ dataset.title|escapejs }}";{% endif %} {% if instrument %}title += " » IFCB{{ instrument.number }}";{% endif %} {% if cruise %}title += " » {{ cruise }}"{% endif %} {% if sample_type %}title += " » {{ sample_type }}"{% endif %}