mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 06:14:20 +01:00
Test to make sure 4-byte utf8 supplementary chars get cleaned up
This commit is contained in:
parent
64ff3fbc65
commit
58b75225a7
@ -66,6 +66,7 @@ class SaveToVfsTest extends \EGroupware\Api\AppTest
|
|||||||
$this->assertNotContains('/', $cleaned);
|
$this->assertNotContains('/', $cleaned);
|
||||||
$this->assertNotContains('?', $cleaned);
|
$this->assertNotContains('?', $cleaned);
|
||||||
$this->assertNotContains('\x0b', $cleaned);
|
$this->assertNotContains('\x0b', $cleaned);
|
||||||
|
$this->assertNotContains('😂', $cleaned);
|
||||||
|
|
||||||
// Length should stay the same
|
// Length should stay the same
|
||||||
$this->assertEquals(strlen($filename), strlen($cleaned), 'Length changed');
|
$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 %', true),
|
array('Contains a %', true),
|
||||||
array('Contains a \x0b', 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