diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-04-12 09:44:05 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-05-01 11:14:24 +0200 |
commit | 3143a5d2602de521b432231d701aedcc2844c088 (patch) | |
tree | fa1e4efbef26d0438437db2ef29f91cf995ed18c /lib | |
parent | 1498a9cb0fb4500737c9d9e88f38c0ddf2b42791 (diff) | |
download | gitlab-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')
-rw-r--r-- | lib/constraints/project_url_constrainer.rb | 2 |
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 |