summaryrefslogtreecommitdiff
path: root/lib/constraints
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2017-04-12 09:44:05 +0200
committerBob Van Landuyt <bob@gitlab.com>2017-05-01 11:14:24 +0200
commit3143a5d2602de521b432231d701aedcc2844c088 (patch)
treefa1e4efbef26d0438437db2ef29f91cf995ed18c /lib/constraints
parent1498a9cb0fb4500737c9d9e88f38c0ddf2b42791 (diff)
downloadgitlab-ce-3143a5d2602de521b432231d701aedcc2844c088.tar.gz
Use the namespace validator for validating all paths
Since the namespacevalidator now knows the difference between a top-level and another path, this could all be handled there.
Diffstat (limited to 'lib/constraints')
-rw-r--r--lib/constraints/project_url_constrainer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/constraints/project_url_constrainer.rb b/lib/constraints/project_url_constrainer.rb
index a10b4657d7d..f83fa1618a5 100644
--- a/lib/constraints/project_url_constrainer.rb
+++ b/lib/constraints/project_url_constrainer.rb
@@ -4,7 +4,7 @@ class ProjectUrlConstrainer
project_path = request.params[:project_id] || request.params[:id]
full_path = namespace_path + '/' + project_path
- unless ProjectPathValidator.valid?(project_path)
+ unless NamespaceValidator.valid_full_path?(full_path)
return false
end