mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix charset sniffing in reworked response body filtering code
Related feedback: https://github.com/uBlockOrigin/uBlock-discussions/discussions/830 Related commit: https://github.com/uBlockOrigin/uBlock-issues/discussions/2537#discussioncomment-5277574
This commit is contained in:
parent
4de6bd6f07
commit
c38267bb2b
1 changed files with 1 additions and 1 deletions
|
|
@ -736,7 +736,7 @@ const bodyFilterer = (( ) => {
|
||||||
if ( (i - 40) >= 65536 ) { return; }
|
if ( (i - 40) >= 65536 ) { return; }
|
||||||
i += 8;
|
i += 8;
|
||||||
// find first alpha character
|
// find first alpha character
|
||||||
let j = 0;
|
let j = -1;
|
||||||
while ( j < 8 ) {
|
while ( j < 8 ) {
|
||||||
j += 1;
|
j += 1;
|
||||||
const c = bytes[i+j];
|
const c = bytes[i+j];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue