Fixed: HTML filter (#192)

This commit is contained in:
nobody 2020-12-06 07:52:25 +01:00
parent 8ef432018e
commit 20d24a8f4e
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) {
//remove crossorigin and integrity attributes
let str = decoder.decode(evt.data, {stream: true}).replace(/<(link|script)[^>]+>/ig, m => {
if (cdnDomainsRE.test(m)) {
return m.replace(/\s+(integrity|crossorigin)(="[^"]*"|='[^']*'|=[^"'`=\s]+|)/ig, '');
return m.replace(/\s+(integrity|crossorigin)(="[^"]*"|='[^']*'|=[^"'`=>\s]+|)/ig, '');
}
return m;
});

View File

@ -25,7 +25,7 @@
New in LocalCDN:
</div>
<ul>
<li></li>
<li>Fixed: HTML filter (<a href="https://codeberg.org/nobody/LocalCDN/issues/192">#192</a>)</li>
</ul>
<div id="generator-section">
<div class="topic-label">