X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/516aef5d07eaaad43311bc60018648b952d95a1d..6df7fdbb9eb563f8ccf68f24c3d210b27c93cd83:/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...