diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-07-03 13:55:43 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-07-05 16:08:57 +0100 |
commit | d1e0b1b3a8404f3a7b54db09c46fb614ca3fcb93 (patch) | |
tree | 6966390483970e4aa0ef5d5da572769ea84817bf /lib/gitlab/regex.rb | |
parent | 81dba76b9d7d120cd22e3619a4058bd4885be9bc (diff) | |
download | gitlab-ce-d1e0b1b3a8404f3a7b54db09c46fb614ca3fcb93.tar.gz |
Allow creation of files and directories with spaces in web UI
Diffstat (limited to 'lib/gitlab/regex.rb')
-rw-r--r-- | lib/gitlab/regex.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb index b706434217d..a5bd2175921 100644 --- a/lib/gitlab/regex.rb +++ b/lib/gitlab/regex.rb @@ -20,7 +20,7 @@ module Gitlab end def file_name_regex - @file_name_regex ||= /\A[[[:alnum:]]_\-\.\@\+]*\z/.freeze + @file_name_regex ||= /\A[^\/\0]*\z/.freeze end def file_name_regex_message |