From 2840cd6d1b9b7b06dbf96d515ae25130a5282542 Mon Sep 17 00:00:00 2001 From: nobody Date: Thu, 21 May 2020 19:44:33 +0200 Subject: [PATCH] Identify correct charset if its in quotation mark --- core/manipulate-dom.js | 2 +- manifest.json | 2 +- pages/updates/updates.html | 10 +++++++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/core/manipulate-dom.js b/core/manipulate-dom.js index e5dc7043..1ac8def4 100644 --- a/core/manipulate-dom.js +++ b/core/manipulate-dom.js @@ -57,7 +57,7 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) { asciiDecoder = new TextDecoder('ASCII'); encoder = new TextEncoder(); - charset = /charset\s*=/.test(header.value) && header.value.replace(/^.*?charset\s*=\s*/, ''); + charset = /charset\s*=/.test(header.value) && header.value.replace(/^.*?charset\s*=\s*/, '').replace(/["']?/g, ''); isFirstData = true; filter = browser.webRequest.filterResponseData(details.requestId); diff --git a/manifest.json b/manifest.json index 241e8f96..287ec2e3 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "LocalCDN (fork from Decentraleyes)", - "version": "2.2.2", + "version": "2.2.3", "browser_specific_settings": { "gecko": { "id": "{b86e4813-687a-43e6-ab65-0bde4ab75758}", diff --git a/pages/updates/updates.html b/pages/updates/updates.html index e1410a06..fd95cba8 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -21,10 +21,10 @@
New in LocalCDN: -
    -
  • Addition to the encoding problem (#75)
  • -
+
Please update your uBlock/uMatrix rules @@ -41,6 +41,10 @@

History

+

2020-05-21 (v2.2.2)

+
    +
  • Addition to the encoding problem (#75)
  • +

2020-05-16 (v2.2.1)

  • Fixed: Encoding problem with some websites (maybe only temporary, because at the moment only 9 websites are affected) (#75)