diff options
author | winniehell <git@winniehell.de> | 2016-12-08 22:53:15 +0100 |
---|---|---|
committer | winniehell <git@winniehell.de> | 2016-12-13 09:13:06 +0100 |
commit | 61aa90ef2089c9d840b88f14a553ef0dd49b779f (patch) | |
tree | 392cebd9ad4ee2083d0fe32daecef5907af8a1dd /lib | |
parent | c16b24af04643edc598b20b338eff25e463ed29b (diff) | |
download | gitlab-ce-61aa90ef2089c9d840b88f14a553ef0dd49b779f.tar.gz |
Allow all alphanumeric characters in file names (!8002)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/regex.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb index a06cf6a989c..d9d1e3cccca 100644 --- a/lib/gitlab/regex.rb +++ b/lib/gitlab/regex.rb @@ -61,7 +61,7 @@ module Gitlab end def file_name_regex - @file_name_regex ||= /\A[a-zA-Z0-9_\-\.\@]*\z/.freeze + @file_name_regex ||= /\A[[[:alnum:]]_\-\.\@]*\z/.freeze end def file_name_regex_message @@ -69,7 +69,7 @@ module Gitlab end def file_path_regex - @file_path_regex ||= /\A[a-zA-Z0-9_\-\.\/\@]*\z/.freeze + @file_path_regex ||= /\A[[[:alnum:]]_\-\.\/\@]*\z/.freeze end def file_path_regex_message |