From: Tom Hughes Date: Wed, 23 May 2018 11:21:24 +0000 (+0100) Subject: Use an empty array for ruby 2.3 compatibility X-Git-Tag: live~3024 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/ff86bf136a0ce835938cacb53aa6fda3abc18fd2 Use an empty array for ruby 2.3 compatibility Apparently `false.dup` throws in ruby 2.3 and not in 2.5... --- diff --git a/app/controllers/oauth_controller.rb b/app/controllers/oauth_controller.rb index 801d88a18..7e7a52677 100644 --- a/app/controllers/oauth_controller.rb +++ b/app/controllers/oauth_controller.rb @@ -38,7 +38,7 @@ class OauthController < ApplicationController protected def oauth1_authorize - override_content_security_policy_directives(:form_action => false) + override_content_security_policy_directives(:form_action => []) if @token.invalidated? @message = t "oauth.authorize_failure.invalid"