]> git.openstreetmap.org Git - rails.git/commitdiff
Use an empty array for ruby 2.3 compatibility
authorTom Hughes <tom@compton.nu>
Wed, 23 May 2018 11:21:24 +0000 (12:21 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 23 May 2018 11:21:24 +0000 (12:21 +0100)
Apparently `false.dup` throws in ruby 2.3 and not in 2.5...

app/controllers/oauth_controller.rb

index 801d88a18020642b60c8546473d8aaef1eaf1963..7e7a52677ccf60105d613645465a62ea93079714 100644 (file)
@@ -38,7 +38,7 @@ class OauthController < ApplicationController
   protected
 
   def oauth1_authorize
   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"
 
     if @token.invalidated?
       @message = t "oauth.authorize_failure.invalid"