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:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-07-03 15:55:43 +0300
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-07-05 18:08:57 +0300
commitd1e0b1b3a8404f3a7b54db09c46fb614ca3fcb93 (patch)
tree6966390483970e4aa0ef5d5da572769ea84817bf /lib/gitlab/regex.rb
parent81dba76b9d7d120cd22e3619a4058bd4885be9bc (diff)
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