summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authormanojmj <mmj@gitlab.com>2019-06-27 14:44:01 +0530
committermanojmj <mmj@gitlab.com>2019-07-05 15:09:04 +0530
commitc93ce836930a875452432ccc0c92733fb8adda29 (patch)
treea29f7f6461bfd79983cb305d9a7d89ff5ecec3b3 /config
parentd1154dcd2b3b126cc4d6c3bba87c47b6669e697c (diff)
downloadgitlab-ce-c93ce836930a875452432ccc0c92733fb8adda29.tar.gz
Do not allow localhost url redirection in GitHub Integration
Diffstat (limited to 'config')
-rw-r--r--config/initializers/octokit.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/octokit.rb b/config/initializers/octokit.rb
new file mode 100644
index 00000000000..b3749258ec5
--- /dev/null
+++ b/config/initializers/octokit.rb
@@ -0,0 +1 @@
+Octokit.middleware.insert_after Octokit::Middleware::FollowRedirects, Gitlab::Octokit::Middleware