]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/geocoder_controller.rb
Merge r17285 from the oauth branch - allow flash access to set headers, even when...
[rails.git] / app / controllers / geocoder_controller.rb
index 8195b0d473c511bb7a9d6de108d2283bcff99a18..556cfb36ad4ae53bf04fbadd3097cbdc9bb31dbd 100644 (file)
@@ -77,7 +77,7 @@ class GeocoderController < ApplicationController
       data = response.split(/\s*,\s+/) # lat,long,town,state,zip
       @results.push({:lat => data[0], :lon => data[1],
                      :zoom => APP_CONFIG['postcode_zoom'],
-                     :prefix => "#{data[2]}, #{data[3]}, ",
+                     :prefix => "#{data[2]}, #{data[3]},",
                      :name => data[4]})
     end