Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2017-06-22 08:19:14 +0300
committerDouwe Maan <douwe@selenight.nl>2017-07-26 12:05:44 +0300
commitcc3a82bc8bf0af9a8b7deb1b289aee621c91f7da (patch)
tree20be7c1dcb0951b6b38c0a4eaca4cd27debc2f14 /lib/api
parent8ce8b21f675709c884148d050663b9f2374cdc61 (diff)
Add `rescue false`.
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
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