X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d0e291552e5da004f1582d7ce577b8ccf7f546df..3b3896da08b0733c3934ac3913ae4b48efa939ff:/app/views/map_bugs/get_bugs.js.erb diff --git a/app/views/map_bugs/get_bugs.js.erb b/app/views/map_bugs/get_bugs.js.erb index 0364587df..5bc9aafda 100644 --- a/app/views/map_bugs/get_bugs.js.erb +++ b/app/views/map_bugs/get_bugs.js.erb @@ -2,6 +2,6 @@ <% else %> <% @bugs.each do |bug| %> -putAJAXMarker(<%= bug.id.to_s %> , <%= bug.lon.to_s %> , <%= bug.lat.to_s %> , '<%= bug.flatten_comment("
") %>', <%= (bug.status=="open"?"0":"1") %> ); +putAJAXMarker(<%= bug.id.to_s %> , <%= bug.lon.to_s %> , <%= bug.lat.to_s %> , '<%= escape_javascript(bug.flatten_comment("
")) %>', <%= (bug.status=="open"?"0":"1") %> ); <% end %> <% end %> \ No newline at end of file