diff options
author | manojmj <mmj@gitlab.com> | 2019-06-27 14:44:01 +0530 |
---|---|---|
committer | manojmj <mmj@gitlab.com> | 2019-07-05 15:09:04 +0530 |
commit | c93ce836930a875452432ccc0c92733fb8adda29 (patch) | |
tree | a29f7f6461bfd79983cb305d9a7d89ff5ecec3b3 /lib/gitlab/legacy_github_import | |
parent | d1154dcd2b3b126cc4d6c3bba87c47b6669e697c (diff) | |
download | gitlab-ce-c93ce836930a875452432ccc0c92733fb8adda29.tar.gz |
Do not allow localhost url redirection in GitHub Integration
Diffstat (limited to 'lib/gitlab/legacy_github_import')
-rw-r--r-- | lib/gitlab/legacy_github_import/client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/legacy_github_import/client.rb b/lib/gitlab/legacy_github_import/client.rb index bbdd094e33b..b23efd64dee 100644 --- a/lib/gitlab/legacy_github_import/client.rb +++ b/lib/gitlab/legacy_github_import/client.rb @@ -101,7 +101,7 @@ module Gitlab # GitHub Rate Limit API returns 404 when the rate limit is # disabled. In this case we just want to return gracefully # instead of spitting out an error. - rescue Octokit::NotFound + rescue ::Octokit::NotFound nil end |