mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Test to make sure 4-byte utf8 supplementary chars get cleaned up
This commit is contained in:
parent
7b4c8cf000
commit
a1aa67476e
@ -66,6 +66,7 @@ class SaveToVfsTest extends \EGroupware\Api\AppTest
|
||||
$this->assertNotContains('/', $cleaned);
|
||||
$this->assertNotContains('?', $cleaned);
|
||||
$this->assertNotContains('\x0b', $cleaned);
|
||||
$this->assertNotContains('😂', $cleaned);
|
||||
|
||||
// Length should stay the same
|
||||
$this->assertEquals(strlen($filename), strlen($cleaned), 'Length changed');
|
||||
@ -96,7 +97,8 @@ class SaveToVfsTest extends \EGroupware\Api\AppTest
|
||||
array('Contains a ?', true),
|
||||
array('Contains a %', true),
|
||||
array('Contains a \x0b', true),
|
||||
array('This one contains them all < > " : | \ * / ? % are not allowed', true)
|
||||
array('Contains a 😂', true),
|
||||
array('This one contains them all < > " : | \ * / ? % 😂 are not allowed', true)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user