diff options
author | manojmj <mmj@gitlab.com> | 2019-06-27 12:14:01 +0300 |
---|---|---|
committer | manojmj <mmj@gitlab.com> | 2019-07-09 08:04:55 +0300 |
commit | 66ae39ce946b30fa961856df1f33f77be0586db0 (patch) | |
tree | 6f63f8af5923b2bd1b504bbc8035bcfb5251ae37 /lib/gitlab/legacy_github_import/client.rb | |
parent | 2fec78ead4ce46b9728be02693b6e50cce740726 (diff) |
Do not allow localhost url redirection in GitHub Integration
Diffstat (limited to 'lib/gitlab/legacy_github_import/client.rb')
-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 |