diff --git a/lib/public/constants.php b/lib/public/constants.php index 518fbcf7ebeb5d1fdf2bca7196ac9459a1f6b48e..4dd6793a13a9ee462171f8f128bd60afbe383ef7 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 = "\\/"; } diff --git a/tests/lib/util.php b/tests/lib/util.php index 7880d56f63b0758dc8b6e251fe7e8a3363589dac..4d7883538817d0b9c9ae0258202b3cedb48d6eb4 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('lt<lt', false), - array('gt>gt', false), - array('col:on', false), - array('double"quote', false), - array('pi|pe', false), - array('dont?ask?questions?', false), - array('super*star', false), + array('lt<lt', true), + array('gt>gt', 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),