mirror of https://github.com/gorhill/uBlock.git
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
|
@ -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 New Issue