update fix for #3507: look even farther for charset

This commit is contained in:
Raymond Hill 2018-02-13 06:14:25 -05:00
parent f484461d2e
commit aadcfcdaf3
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -745,7 +745,7 @@ var filterDocument = (function() {
utf8TextDecoder = new TextDecoder(); utf8TextDecoder = new TextDecoder();
} }
doc = domParser.parseFromString( doc = domParser.parseFromString(
utf8TextDecoder.decode(filterer.buffer.slice(0, 2048)), utf8TextDecoder.decode(filterer.buffer.slice(0, 4096)),
'text/html' 'text/html'
); );
filterer.charset = µb.textEncode.normalizeCharset(charsetFromDoc(doc)); filterer.charset = µb.textEncode.normalizeCharset(charsetFromDoc(doc));