summaryrefslogtreecommitdiff
path: root/lib/gitlab/regex.rb
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-07-03 13:55:43 +0100
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-07-05 16:08:57 +0100
commitd1e0b1b3a8404f3a7b54db09c46fb614ca3fcb93 (patch)
tree6966390483970e4aa0ef5d5da572769ea84817bf /lib/gitlab/regex.rb
parent81dba76b9d7d120cd22e3619a4058bd4885be9bc (diff)
downloadgitlab-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.rb2
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