summaryrefslogtreecommitdiff
path: root/app/validators
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2017-04-28 17:53:28 +0200
committerBob Van Landuyt <bob@gitlab.com>2017-05-01 11:14:24 +0200
commit1e14c3c8525c4e9db6f83da6c037ed94205f65f0 (patch)
treeca97b8b10d6a36753adc50d57c760726d90d4a3a /app/validators
parent2c7ca43bdd8d24153e50216308bc7d88e73209cf (diff)
downloadgitlab-ce-1e14c3c8525c4e9db6f83da6c037ed94205f65f0.tar.gz
Reject paths following namespace for paths including 2 `*`
Reject the part following `/*namespace_id/:project_id` for paths containing 2 wildcard parameters
Diffstat (limited to 'app/validators')
-rw-r--r--app/validators/dynamic_path_validator.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/validators/dynamic_path_validator.rb b/app/validators/dynamic_path_validator.rb
index 18680b8975f..96da92b5d76 100644
--- a/app/validators/dynamic_path_validator.rb
+++ b/app/validators/dynamic_path_validator.rb
@@ -70,10 +70,10 @@ class DynamicPathValidator < ActiveModel::EachValidator
# 'tree' as project name and 'deploy_keys' as route.
#
WILDCARD_ROUTES = Set.new(%w[
- artifacts
badges
blame
blob
+ builds
commits
create
create_dir
@@ -83,10 +83,10 @@ class DynamicPathValidator < ActiveModel::EachValidator
find_file
gitlab-lfs/objects
info/lfs/objects
- logs_tree
new
preview
raw
+ refs
tree
update
wikis