##// END OF EJS Templates
HTML escape at app/helpers/search_helper.rb....
Toshi MARUYAMA -
r6239:07baff465f4c
parent child
Show More
@@ -57,7 +57,8 module SearchHelper
57 c = results_by_type[t]
57 c = results_by_type[t]
58 next if c == 0
58 next if c == 0
59 text = "#{type_label(t)} (#{c})"
59 text = "#{type_label(t)} (#{c})"
60 links << link_to(text, :q => params[:q], :titles_only => params[:titles_only], :all_words => params[:all_words], :scope => params[:scope], t => 1)
60 links << link_to(h(text), :q => params[:q], :titles_only => params[:titles_only],
61 :all_words => params[:all_words], :scope => params[:scope], t => 1)
61 end
62 end
62 ('<ul>' + links.map {|link| content_tag('li', link)}.join(' ') + '</ul>') unless links.empty?
63 ('<ul>' + links.map {|link| content_tag('li', link)}.join(' ') + '</ul>') unless links.empty?
63 end
64 end
General Comments 0
You need to be logged in to leave comments. Login now