Merge pull request #22338 from owncloud/fix_22247
Allow more characters in filenames
This commit is contained in:
commit
d5226c88ac
|
@ -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 = "\\/";
|
||||
}
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue