We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27f9055 commit 346c5e0Copy full SHA for 346c5e0
app/helpers/tags_helper.rb
@@ -15,7 +15,7 @@ def tags_for_index(model)
15
elsif !query.include?(hashtag)
16
query += " #{hashtag}"
17
end
18
- out << link_to_function(tag, "crm.search_tagged('#{query}', '#{model.class.to_s.tableize}')", title: tag)
+ out << link_to_function(tag, "crm.search_tagged('#{escape_javascript(query)}', '#{model.class.to_s.tableize}')", title: tag)
19
20
21
0 commit comments