From f484b09518db47a06690e09a710cf6e866c5561b Mon Sep 17 00:00:00 2001 From: Horacio Sanson Date: Wed, 4 May 2011 10:31:12 +0900 Subject: [PATCH 1/2] Fix crash for non ASCII chars --- bin/heliotrope-server | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/bin/heliotrope-server b/bin/heliotrope-server index 4793ac2..ed9c3be 100644 --- a/bin/heliotrope-server +++ b/bin/heliotrope-server @@ -151,7 +151,7 @@ class HeliotropeServer < Sinatra::Base nav += "" header("Search: #{query.original_query_s}", query.original_query_s) + - "
Parsed query: #{escape_html query.parsed_query_s}
" + + "
Parsed query: #{escape_html query.parsed_query_s.force_encoding('UTF-8')}
" + "
Search took #{sprintf '%.2f', info[:elapsed]}s and #{info[:continued] ? 'was' : 'was NOT'} continued
" + "#{nav}" + results.map { |r| threadinfo_to_html r }.join + -- 1.7.4.1