Skip to content

Commit

Permalink
Resolve brakeman issues with unescaped js
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanTG committed Jan 7, 2025
1 parent e473217 commit a231386
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.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";

Expand Down

0 comments on commit a231386

Please sign in to comment.