From 714f07dc2540cbb426bf46ee3e9c9c1913490c98 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 13 Sep 2020 13:41:25 -0400 Subject: [PATCH] Work around instances of over-encoded subscription URLs Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/issues/763#issuecomment-691696716 --- src/js/scriptlets/subscriber.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/scriptlets/subscriber.js b/src/js/scriptlets/subscriber.js index 5b1f83b49..f6ef64c13 100644 --- a/src/js/scriptlets/subscriber.js +++ b/src/js/scriptlets/subscriber.js @@ -57,7 +57,9 @@ const onMaybeSubscriptionLinkClicked = function(ev) { const subscribeURL = new URL('about:blank'); try { - subscribeURL.href = target.href; + // https://github.com/uBlockOrigin/uBlock-issues/issues/763#issuecomment-691696716 + // Remove replacement patch if/when filterlists.com fixes encoded '&'. + subscribeURL.href = target.href.replace('&', '&'); if ( /^(abp|ubo):$/.test(subscribeURL.protocol) === false && subscribeURL.hostname !== 'subscribe.adblockplus.org'