Skip to content

Commit

Permalink
sanitize meta strings
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanTG committed Jan 7, 2025
1 parent 6062c8f commit 2c23eb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/locations/_locations.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
var isSingleLocation = #{@locations.size == 1 ? true : false};

if (isSingleLocation) {
var locationName = "#{@locations.first&.name}";
var locationName = "#{sanitize(@locations.first&.name)}";

var regionName = "#{@region&.full_name}"
var regionName = "#{sanitize(@region&.full_name)}"

newTitle = locationName + " - " + regionName + " Pinball Map";

Expand Down

0 comments on commit 2c23eb0

Please sign in to comment.