summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2017-04-14 20:06:20 +0200
committerBob Van Landuyt <bob@gitlab.com>2017-05-01 11:14:24 +0200
commitc5059cb4f705191074d3371beb81a3f0a67473af (patch)
treefbed521c239d49c7e8a26d6b3462eeff5a3c4808 /app
parent27f54bebb29a1e56251ac2d669c2883aeaf1cb1c (diff)
downloadgitlab-ce-c5059cb4f705191074d3371beb81a3f0a67473af.tar.gz
Make path validation case-insensitive
Diffstat (limited to 'app')
-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 7587a3f20e1..3b93a0d0b28 100644
--- a/app/validators/dynamic_path_validator.rb
+++ b/app/validators/dynamic_path_validator.rb
@@ -94,6 +94,7 @@ class DynamicPathValidator < ActiveModel::EachValidator
end
def self.reserved?(value, type: :strict)
+ value = value.to_s.downcase
case type
when :wildcard
WILDCARD_ROUTES.include?(value)