diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2017-06-22 16:19:14 +1100 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-07-26 11:05:44 +0200 |
commit | cc3a82bc8bf0af9a8b7deb1b289aee621c91f7da (patch) | |
tree | 20be7c1dcb0951b6b38c0a4eaca4cd27debc2f14 /lib/api/helpers.rb | |
parent | 8ce8b21f675709c884148d050663b9f2374cdc61 (diff) | |
download | gitlab-ce-cc3a82bc8bf0af9a8b7deb1b289aee621c91f7da.tar.gz |
Add `rescue false`.
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 2 |
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 |