HTML filter trim spaces in character set detection (#1526)
This commit is contained in:
parent
55fefd12b9
commit
d8d48265d5
|
@ -86,8 +86,8 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) {
|
|||
charsetMatch = htmlHead.match(/<meta.*charset=["']?([^>"'\/]+)["'].*[>\/]/i) || 'utf8';
|
||||
}
|
||||
|
||||
if (EncodingTypes[charsetMatch[1].toLowerCase()] !== undefined) {
|
||||
charset = charsetMatch[1];
|
||||
if (EncodingTypes[charsetMatch[1].toLowerCase().trim()] !== undefined) {
|
||||
charset = charsetMatch[1].trim();
|
||||
} else {
|
||||
// If charset is unclear, then use ASCII by default.
|
||||
// Other charsets are mostly tagged in the header or HTML source code.
|
||||
|
|
|
@ -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 trim spaces in character set detection (<a href="https://codeberg.org/nobody/LocalCDN/issues/1526">#1526</a>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="generator-section">
|
||||
|
|
Loading…
Reference in New Issue