Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
56e031d3
Commit
56e031d3
authored
Apr 03, 2017
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disallow some more namespaces
These routes seem to be taken
parent
d6dfbf02
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
app/validators/namespace_validator.rb
app/validators/namespace_validator.rb
+16
-0
changelogs/unreleased/30272-bvl-reject-more-namespaces.yml
changelogs/unreleased/30272-bvl-reject-more-namespaces.yml
+4
-0
No files found.
app/validators/namespace_validator.rb
View file @
56e031d3
...
...
@@ -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
...
...
changelogs/unreleased/30272-bvl-reject-more-namespaces.yml
0 → 100644
View file @
56e031d3
---
title
:
Improve validation of namespace & project paths
merge_request
:
10413
author
:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment