From a231386686da4d1960442610cf280d7333070466 Mon Sep 17 00:00:00 2001 From: RyanTG Date: Mon, 6 Jan 2025 16:01:53 -0800 Subject: [PATCH] Resolve brakeman issues with unescaped js --- app/views/locations/_locations.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/locations/_locations.html.haml b/app/views/locations/_locations.html.haml index 9bb8223f..e18df090 100644 --- a/app/views/locations/_locations.html.haml +++ b/app/views/locations/_locations.html.haml @@ -36,9 +36,9 @@ var isSingleLocation = #{@locations.size == 1 ? true : false}; if (isSingleLocation) { - var locationName = "#{@locations.size == 0 ? '' : @locations[0].name}"; + var locationName = "#{@locations.size == 0 ? '' : h(@locations[0].name)}"; - var regionName = "#{@region ? @region.full_name : ''}" + var regionName = "#{@region ? h(@region.full_name) : ''}" newTitle = locationName + " - " + regionName + " Pinball Map";