X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/035254c5fbcf7c4a892532baefc79f5e9e4e7aa7..9793e4fb7f6503beab0efe1576f3e13dbf350f30:/app/controllers/export_controller.rb diff --git a/app/controllers/export_controller.rb b/app/controllers/export_controller.rb index c84075d37..225ddf86b 100644 --- a/app/controllers/export_controller.rb +++ b/app/controllers/export_controller.rb @@ -1,5 +1,6 @@ class ExportController < ApplicationController + before_filter :authorize_web before_filter :set_locale def start @@ -19,7 +20,7 @@ class ExportController < ApplicationController format = params[:mapnik_format] scale = params[:mapnik_scale] - redirect_to "http://tile.openstreetmap.org/cgi-bin/export?bbox=#{bbox}&scale=#{scale}&format=#{format}" + redirect_to "http://parent.tile.openstreetmap.org/cgi-bin/export?bbox=#{bbox}&scale=#{scale}&format=#{format}" elsif format == "osmarender" #redirect to the t@h 'MapOf' service