From 6bd0d51b2a9742108f64b406fba55d5af6264fb2 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 11 Feb 2016 21:45:25 +0100 Subject: [PATCH 1/2] More characters are allowed on POSIX systems --- lib/public/constants.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/public/constants.php b/lib/public/constants.php index 518fbcf7eb..4dd6793a13 100644 --- a/lib/public/constants.php +++ b/lib/public/constants.php @@ -68,7 +68,8 @@ class Constants { const PERMISSION_ALL = 31; /** - * @since 8.0.0 + * @since 8.0.0 - Updated in 9.0.0 to allow all POSIX chars since we no + * longer support windows as server platform. */ - const FILENAME_INVALID_CHARS = "\\/<>:\"|?*\n"; + const FILENAME_INVALID_CHARS = "\\/"; } From 759b19775debc7dd3427267a6d711acf434d24fb Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 11 Feb 2016 21:45:56 +0100 Subject: [PATCH 2/2] Fix unit tests --- tests/lib/util.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/lib/util.php b/tests/lib/util.php index 7880d56f63..4d78835388 100644 --- a/tests/lib/util.php +++ b/tests/lib/util.php @@ -214,13 +214,13 @@ class Test_Util extends \Test\TestCase { array('..', false), array('back\\slash', false), array('sl/ash', false), - array('ltgt', false), - array('col:on', false), - array('double"quote', false), - array('pi|pe', false), - array('dont?ask?questions?', false), - array('super*star', false), + array('ltgt', true), + array('col:on', true), + array('double"quote', true), + array('pi|pe', true), + array('dont?ask?questions?', true), + array('super*star', true), array('new\nline', false), // better disallow these to avoid unexpected trimming to have side effects array(' ..', false),