lib/gollum/views/search.rb in gollum-5.3.3 vs lib/gollum/views/search.rb in gollum-6.0.0
- old
+ new
@@ -17,14 +17,14 @@
end.reverse.slice((@page_num - 1) * @max_count, @max_count)
sorted.each {|x| x[:href] = page_route(x[:name])}
end
def query_string
- "&q=#{@query}"
+ "&q=%s" % CGI.escape(@query)
end
def title
- "Search results for " + @query
+ t[:title]
end
def search
true # View has searchbar
end