aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/public/constants.php5
-rw-r--r--tests/lib/util.php14
2 files changed, 10 insertions, 9 deletions
diff --git a/lib/public/constants.php b/lib/public/constants.php
index 518fbcf7ebe..4dd6793a13a 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 7880d56f63b..4d788353881 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),