From cc3a82bc8bf0af9a8b7deb1b289aee621c91f7da Mon Sep 17 00:00:00 2001 From: blackst0ne Date: Thu, 22 Jun 2017 16:19:14 +1100 Subject: Add `rescue false`. --- lib/api/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/api') diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index b81ce75ef4f..9a589828221 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -338,7 +338,7 @@ module API # Check if CSRF tokens are valid. def verified_request? - GitLab::RequestForgeryProtection.call(env) + Gitlab::RequestForgeryProtection.call(env) rescue false end # Check the Rails session for valid authentication details -- cgit v1.2.3