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 801d88a..7e7a526 100644 (file)
@@ -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"