From fb94bb6c581a2bd3bc437e7705e3efcecbe79c72 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 23 May 2018 12:50:10 +0100 Subject: [PATCH] Don't override non-existent policy --- app/controllers/oauth_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/oauth_controller.rb b/app/controllers/oauth_controller.rb index 7e7a52677..96b562b5e 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 => []) + override_content_security_policy_directives(:form_action => []) if CSP_ENFORCE || defined?(CSP_REPORT_URL) if @token.invalidated? @message = t "oauth.authorize_failure.invalid" -- 2.43.2