From bf114b31114e860e746f248661addcdde0133077 Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Tue, 18 Jul 2017 09:37:38 +0200 Subject: [PATCH] Add contents of `public` as forbidden top-level routes --- lib/gitlab/path_regex.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/gitlab/path_regex.rb b/lib/gitlab/path_regex.rb index c8b1b762940..894bd5efae5 100644 --- a/lib/gitlab/path_regex.rb +++ b/lib/gitlab/path_regex.rb @@ -14,14 +14,23 @@ module Gitlab TOP_LEVEL_ROUTES = %w[ - .well-known + 404.html + 422.html + 500.html + 502.html + 503.html abuse_reports admin api + apple-touch-icon-precomposed.png + apple-touch-icon.png assets autocomplete ci dashboard + deploy.html explore + favicon.ico files groups health_check @@ -39,6 +48,7 @@ module Gitlab s search sent_notifications + slash-command-logo.png snippets u unicorn_test