X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e70d94c54a3c449bc12e99d0f3a01a3ef20fc0ab..dc3edbe7c19c546895a9ba17cf29282802952a0d:/app/controllers/way_controller.rb diff --git a/app/controllers/way_controller.rb b/app/controllers/way_controller.rb index d6489fef8..e7d6cf87b 100644 --- a/app/controllers/way_controller.rb +++ b/app/controllers/way_controller.rb @@ -142,7 +142,11 @@ class WayController < ApplicationController end def ways - ids = params['ways'].split(',').collect { |w| w.to_i } + begin + ids = params['ways'].split(',').collect { |w| w.to_i } + rescue + ids = [] + end if ids.length > 0 doc = OSM::API.new.get_xml_doc