mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-09 23:28:42 +00:00
Add test for #122
This commit is contained in:
parent
f145f64bf4
commit
d16e73e63e
@ -23,6 +23,7 @@ class HTMLPurifier_EncoderTest extends HTMLPurifier_Harness
|
|||||||
$this->assertCleanUTF8('Normal string.');
|
$this->assertCleanUTF8('Normal string.');
|
||||||
$this->assertCleanUTF8("Test\tAllowed\nControl\rCharacters");
|
$this->assertCleanUTF8("Test\tAllowed\nControl\rCharacters");
|
||||||
$this->assertCleanUTF8("null byte: \0", 'null byte: ');
|
$this->assertCleanUTF8("null byte: \0", 'null byte: ');
|
||||||
|
$this->assertCleanUTF8("あ(い)う(え)お\0", "あ(い)う(え)お"); // test for issue #122
|
||||||
$this->assertCleanUTF8("\1\2\3\4\5\6\7", '');
|
$this->assertCleanUTF8("\1\2\3\4\5\6\7", '');
|
||||||
$this->assertCleanUTF8("\x7F", ''); // one byte invalid SGML char
|
$this->assertCleanUTF8("\x7F", ''); // one byte invalid SGML char
|
||||||
$this->assertCleanUTF8("\xC2\x80", ''); // two byte invalid SGML
|
$this->assertCleanUTF8("\xC2\x80", ''); // two byte invalid SGML
|
||||||
|
Loading…
Reference in New Issue
Block a user