Disallow some more namespaces
These routes seem to be taken
This commit is contained in:
parent
d6dfbf02f7
commit
56e031d303
|
@ -33,6 +33,22 @@ class NamespaceValidator < ActiveModel::EachValidator
|
||||||
u
|
u
|
||||||
unsubscribes
|
unsubscribes
|
||||||
users
|
users
|
||||||
|
api
|
||||||
|
autocomplete
|
||||||
|
search
|
||||||
|
member
|
||||||
|
explore
|
||||||
|
uploads
|
||||||
|
import
|
||||||
|
notification_settings
|
||||||
|
abuse_reports
|
||||||
|
invites
|
||||||
|
help
|
||||||
|
koding
|
||||||
|
health_check
|
||||||
|
jwt
|
||||||
|
oauth
|
||||||
|
sent_notifications
|
||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
WILDCARD_ROUTES = %w[tree commits wikis new edit create update logs_tree
|
WILDCARD_ROUTES = %w[tree commits wikis new edit create update logs_tree
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: Improve validation of namespace & project paths
|
||||||
|
merge_request: 10413
|
||||||
|
author:
|
Loading…
Reference in New Issue