X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/516aef5d07eaaad43311bc60018648b952d95a1d..19a57c97b16d2dae962739f49732c081acaf3202:/app/views/site/_search.rhtml diff --git a/app/views/site/_search.rhtml b/app/views/site/_search.rhtml index 19b4ca2d1..bdfc2fb57 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,7 @@ <% 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]) %> <% end %>

Searching...