Fixed: Default charset of HTML filter (#567)

This commit is contained in:
nobody 2021-07-13 06:26:45 +02:00
parent 9c1faf8a6a
commit f8357e30c2
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 5 additions and 1 deletions

View File

@ -97,7 +97,10 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) {
if (EncodingTypes[charsetMatch[1].toLowerCase()] !== undefined) {
charset = charsetMatch[1];
} else {
charset = 'UTF-8';
// If charset is unclear, then use ASCII by default.
// Other charsets are mostly tagged in the header or HTML source code.
// https://codeberg.org/nobody/LocalCDN/issues/567
charset = 'ASCII';
}
}
decoder = new TextDecoder(charset);

View File

@ -62,6 +62,7 @@
<li>Mapping: jquery-mobile -> ajax.googleapis.com (<a href="https://codeberg.org/nobody/LocalCDN/issues/564">#564</a>)</li>
<li>Updated: highlight.js v11.0.1 -> v11.1.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/565">#565</a>)</li>
<li>Updated: socket.io v4.1.2 -> v4.1.3 (<a href="https://codeberg.org/nobody/LocalCDN/issues/566">#566</a>)</li>
<li>Fixed: Default cahrset of HTML filter (<a href="https://codeberg.org/nobody/LocalCDN/issues/567">#567</a>)</li>
<li><strong>Includes also the following changes, because the release of this version took a long time caused by a broken validation server of Mozilla (<a href="https://codeberg.org/nobody/LocalCDN/issues/490">More information</a>).</strong>
<ul>
<li>Ruleset generator for NoScript (<a href="https://codeberg.org/nobody/LocalCDN/issues/489">#489</a>)</li>