Commit 61aa90ef authored by winniehell's avatar winniehell

Allow all alphanumeric characters in file names (!8002)

parent c16b24af
---
title: Allow all alphanumeric characters in file names
merge_request: 8002
author: winniehell
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment