Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2017-04-12 14:26:52 +0300
committerBob Van Landuyt <bob@gitlab.com>2017-05-01 12:14:24 +0300
commit9fb9414ec0787a0414c912bb7b62103f96c48d34 (patch)
treeeb681df7e73918c852dbccde79955e6043530373 /app/validators
parent2f95e6a0c469b2ac7647eef02810ecf2b5ce2021 (diff)
Reject `-` as a path
Diffstat (limited to 'app/validators')
-rw-r--r--app/validators/dynamic_path_validator.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/validators/dynamic_path_validator.rb b/app/validators/dynamic_path_validator.rb
index ce363c052d8..7587a3f20e1 100644
--- a/app/validators/dynamic_path_validator.rb
+++ b/app/validators/dynamic_path_validator.rb
@@ -59,6 +59,7 @@ class DynamicPathValidator < ActiveModel::EachValidator
jwt
oauth
sent_notifications
+ -
]).freeze
# All project routes with wildcard argument must be listed here.