X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/516aef5d07eaaad43311bc60018648b952d95a1d..18777b41ea4aa1364dbf33e86e6cb65762b53296:/app/views/site/_search.rhtml diff --git a/app/views/site/_search.rhtml b/app/views/site/_search.rhtml index 19b4ca2d1..f18587f73 100644 --- a/app/views/site/_search.rhtml +++ b/app/views/site/_search.rhtml @@ -24,7 +24,7 @@ <% if params[:query] %> <%= remote_function(:loading => "startSearch()", :complete => "endSearch()", - :url => { :controller => :geocoder, :action => :search, :query => params[:query] }) %> + :url => { :controller => :geocoder, :action => :search, :query => h(params[:query]) }) %> <% end %> // --> @@ -38,7 +38,13 @@ <% form_remote_tag(:loading => "startSearch()", :complete => "endSearch()", :url => { :controller => :geocoder, :action => :search }) do %> - <%= text_field_tag :query, params[:query] %> + + + + + + +
<%= text_field_tag :query, h(params[:query]) %><%= submit_tag 'Go' %>
<% end %>

Searching...