diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-04-03 14:07:15 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-05-01 11:14:23 +0200 |
commit | 56e031d3032996233f2c71ba7b5e3fc398da0b53 (patch) | |
tree | 158a33fea4649026565518ee268c7c5c055598e6 | |
parent | d6dfbf02f706c138b43c06886ba8b36512e32b0a (diff) | |
download | gitlab-ce-56e031d3032996233f2c71ba7b5e3fc398da0b53.tar.gz |
Disallow some more namespaces
These routes seem to be taken
-rw-r--r-- | app/validators/namespace_validator.rb | 16 | ||||
-rw-r--r-- | changelogs/unreleased/30272-bvl-reject-more-namespaces.yml | 4 |
2 files changed, 20 insertions, 0 deletions
diff --git a/app/validators/namespace_validator.rb b/app/validators/namespace_validator.rb index 77ca033e97f..9601013f2d2 100644 --- a/app/validators/namespace_validator.rb +++ b/app/validators/namespace_validator.rb @@ -33,6 +33,22 @@ class NamespaceValidator < ActiveModel::EachValidator u unsubscribes users + api + autocomplete + search + member + explore + uploads + import + notification_settings + abuse_reports + invites + help + koding + health_check + jwt + oauth + sent_notifications ].freeze WILDCARD_ROUTES = %w[tree commits wikis new edit create update logs_tree diff --git a/changelogs/unreleased/30272-bvl-reject-more-namespaces.yml b/changelogs/unreleased/30272-bvl-reject-more-namespaces.yml new file mode 100644 index 00000000000..56bce084546 --- /dev/null +++ b/changelogs/unreleased/30272-bvl-reject-more-namespaces.yml @@ -0,0 +1,4 @@ +--- +title: Improve validation of namespace & project paths +merge_request: 10413 +author: |