projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5deba27
)
Use an empty array for ruby 2.3 compatibility
author
Tom Hughes
<tom@compton.nu>
Wed, 23 May 2018 11:21:24 +0000
(12:21 +0100)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/app/controllers/oauth_controller.rb
b/app/controllers/oauth_controller.rb
index 801d88a18020642b60c8546473d8aaef1eaf1963..7e7a52677ccf60105d613645465a62ea93079714 100644
(file)
--- 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"