1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-22 21:53:32 +02:00

[2.1.5] [MFH] Fix Shift_JIS bug.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/branches/php4@1793 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2008-06-11 19:01:22 +00:00
parent b8b1ac283d
commit 6f25c39c3e
4 changed files with 29 additions and 37 deletions

View File

@@ -27,6 +27,8 @@ class HTMLPurifier_EncoderTest extends HTMLPurifier_Harness
$this->assertCleanUTF8("\xC2\x80", ''); // two byte invalid SGML
$this->assertCleanUTF8("\xF3\xBF\xBF\xBF"); // valid four byte
$this->assertCleanUTF8("\xDF\xFF", ''); // malformed UTF8
// invalid codepoints
$this->assertCleanUTF8("\xED\xB0\x80", '');
}
function test_convertToUTF8_noConvert() {