mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Fixed: Default charset of HTML filter (#567)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user