fixed: broken html filter (#1638)

This commit is contained in:
nobody 2024-08-13 21:07:34 +02:00
parent b165c3751c
commit cf8a1937a0
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 5 additions and 6 deletions

View File

@ -116,11 +116,10 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) {
data.push(chunk); data.push(chunk);
}; };
if (decoder === undefined) {
decoder = new TextDecoder(charset);
}
filter.onstop = () => { filter.onstop = () => {
if (decoder === undefined) {
decoder = new TextDecoder(charset);
}
let str = ''; let str = '';
for (let buffer of data) { for (let buffer of data) {
str += decoder.decode(buffer, {'stream': true}); str += decoder.decode(buffer, {'stream': true});

View File

@ -25,9 +25,9 @@
<h2>New in LocalCDN:</h2> <h2>New in LocalCDN:</h2>
</div> </div>
<div class="release-notes-area"> <div class="release-notes-area">
<p></p> <p>Fixed/p>
<ul> <ul>
<li></li> <li>Broken HTML Filter (<a href="https://codeberg.org/nobody/LocalCDN/issues/1638">#1638</a>)</li>
</ul> </ul>
</div> </div>
<div id="generator-section"> <div id="generator-section">