diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-07-18 09:37:38 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-07-24 08:54:44 +0200 |
commit | 4e98ec7a6f44c7de13c1b9db4421bdc3eb0e607a (patch) | |
tree | 49e8b8358594e6d0630890453feeccc07311a6ba | |
parent | 597bad41f2557f705f6105dae5acdc6226b26f84 (diff) | |
download | gitlab-ce-4e98ec7a6f44c7de13c1b9db4421bdc3eb0e607a.tar.gz |
Add contents of `public` as forbidden top-level routes
-rw-r--r-- | lib/gitlab/path_regex.rb | 10 |
1 files changed, 10 insertions, 0 deletions
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 |