Permalink
Browse files

stuff done

  • Loading branch information...
1 parent 7ea6a59 commit 523341394040bae64d54bea97d91fa1294a7e331 @Anonyfox committed Jan 25, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 web/public/main.js
  2. +1 −1 web/wikimap.rb
View
@@ -4,7 +4,7 @@ $(document).ready(function() {
function wiki_ask() {
var query = $('#search').val();
- $.get("/ask?query="+query, function (data) {
+ $.get("/ask?query="+encodeURI(query), function (data) {
$('#options_list').html(data);
})
}
View
@@ -11,7 +11,7 @@
end
get '/ask' do
- @items = WikiClient.ask params["query"]
+ @items = WikiClient.ask URI.decode(params["query"])
haml :items
end

0 comments on commit 5233413

Please sign in to comment.