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
diff options
context:
space:
mode:
authormanojmj <mmj@gitlab.com>2019-06-27 12:14:01 +0300
committermanojmj <mmj@gitlab.com>2019-07-09 08:04:55 +0300
commit66ae39ce946b30fa961856df1f33f77be0586db0 (patch)
tree6f63f8af5923b2bd1b504bbc8035bcfb5251ae37 /lib/gitlab/legacy_github_import/client.rb
parent2fec78ead4ce46b9728be02693b6e50cce740726 (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.rb2
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