From 17c66030fe4a2c8db49d16fd63749bb12412f0a7 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 19 Feb 2025 08:41:22 -0500 Subject: [PATCH] [mv3] Fix incorrect hostname matching in urlskip-related code Related feedback: https://github.com/uBlockOrigin/uBOL-home/issues/278#issuecomment-2664971115 --- platform/mv3/extension/js/strictblock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/mv3/extension/js/strictblock.js b/platform/mv3/extension/js/strictblock.js index eb4c25371..23e1372a2 100644 --- a/platform/mv3/extension/js/strictblock.js +++ b/platform/mv3/extension/js/strictblock.js @@ -243,7 +243,7 @@ function fragmentFromTemplate(template, placeholder, text, details) { const urlskipLists = await Promise.all(toFetch); const toHn = toURL.hostname; const matchesHn = hn => { - if ( hn.endsWith(toHn) === false ) { return false; } + if ( toHn.endsWith(hn) === false ) { return false; } if ( hn.length === toHn.length ) { return true; } return toHn.charAt(toHn.length - hn.length - 1) === '.'; };