HTML filter modified (#859)

This commit is contained in:
nobody 2022-02-06 08:06:07 +01:00
parent 6db70742e4
commit 5cbd55ae38
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) {
str = str.replace(/<(link|script)[^>]+>/ig, (m) => {
// eslint-disable-next-line no-use-before-define
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,9 +25,9 @@
<h2>New in LocalCDN:</h2>
</div>
<div class="release-notes-area">
<p></p>
<p>Fixed</p>
<ul>
<li></li>
<li>HTML filter modified (<a href="https://codeberg.org/nobody/LocalCDN/issues/859">#859</a>)</li>
</ul>
</div>
<div id="generator-section">