Fixed: HTML filter (If website does not deliver any charset) (#340)

This commit is contained in:
nobody 2021-04-01 07:04:47 +02:00
parent d916f32ebf
commit a00f25d6ef
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 2 additions and 1 deletions

View File

@ -91,7 +91,7 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) {
charsetMatch = htmlHead.match(/<meta\s+charset=["']?([^>"'\/]+)["'>\/]/i);
if (charsetMatch === null) {
// eslint-disable-next-line no-useless-escape
charsetMatch = htmlHead.match(/<meta.*charset=["']?([^>"'\/]+)["'].*[>\/]/i);
charsetMatch = htmlHead.match(/<meta.*charset=["']?([^>"'\/]+)["'].*[>\/]/i) || 'utf8';
}
if (EncodingTypes[charsetMatch[1].toLowerCase()] !== undefined) {

View File

@ -39,6 +39,7 @@
<li>Added: animejs v3.2.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/338">#338</a>)</li>
<li>Improved: Google Font detection (<a href="https://codeberg.org/nobody/LocalCDN/issues/332">#332</a>)</li>
<li>Added: babel-standalone v6.26.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/332">#332</a>)</li>
<li>Fixed: HTML filter (If website does not deliver any charset) (<a href="https://codeberg.org/nobody/LocalCDN/issues/340">#340</a>)</li>
</ul>
<div id="generator-section">
<div class="topic-label">