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;
|
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('..', false),
|
||||||
array('back\\slash', false),
|
array('back\\slash', false),
|
||||||
array('sl/ash', false),
|
array('sl/ash', false),
|
||||||
array('lt<lt', false),
|
array('lt<lt', true),
|
||||||
array('gt>gt', false),
|
array('gt>gt', true),
|
||||||
array('col:on', false),
|
array('col:on', true),
|
||||||
array('double"quote', false),
|
array('double"quote', true),
|
||||||
array('pi|pe', false),
|
array('pi|pe', true),
|
||||||
array('dont?ask?questions?', false),
|
array('dont?ask?questions?', true),
|
||||||
array('super*star', false),
|
array('super*star', true),
|
||||||
array('new\nline', false),
|
array('new\nline', false),
|
||||||
// better disallow these to avoid unexpected trimming to have side effects
|
// better disallow these to avoid unexpected trimming to have side effects
|
||||||
array(' ..', false),
|
array(' ..', false),
|
||||||
|
|
Loading…
Reference in New Issue