X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5cbd4038edb32b0304bd766e70fc680ea447b52b..8e404f3a468a2636481d52f245b816c41e9d5ac0:/app/controllers/old_controller.rb diff --git a/app/controllers/old_controller.rb b/app/controllers/old_controller.rb index 9d7cf2113..ff86407f5 100644 --- a/app/controllers/old_controller.rb +++ b/app/controllers/old_controller.rb @@ -2,7 +2,7 @@ # into one place. as it turns out, the API methods for historical # nodes, ways and relations are basically identical. class OldController < ApplicationController - require 'xml/libxml' + require "xml/libxml" skip_before_filter :verify_authenticity_token before_filter :setup_user_auth, :only => [:history, :version] @@ -52,7 +52,7 @@ class OldController < ApplicationController end def redact - redaction_id = params['redaction'] + redaction_id = params["redaction"] if redaction_id.nil? # if no redaction ID was provided, then this is an unredact # operation.