X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/516aef5d07eaaad43311bc60018648b952d95a1d..97aefa23d0606edaee71d04cf6c1a2006689b1fa:/app/views/site/_search.rhtml diff --git a/app/views/site/_search.rhtml b/app/views/site/_search.rhtml index 19b4ca2d1..5b4e74b34 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,8 @@ <% 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...