From 15ebb483d896916553ba5d729c22be4e545cc08a Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 3 Jun 2021 19:52:00 -0400 Subject: Fix _getMatchURL missing search and not sanitizing wildcards (#1727) --- ext/js/background/request-builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/js/background/request-builder.js b/ext/js/background/request-builder.js index dda5825d..6106e6eb 100644 --- a/ext/js/background/request-builder.js +++ b/ext/js/background/request-builder.js @@ -109,7 +109,7 @@ class RequestBuilder { _getMatchURL(url) { const url2 = new URL(url); - return `${url2.protocol}//${url2.host}${url2.pathname}`; + return `${url2.protocol}//${url2.host}${url2.pathname}${url2.search}`.replace(/\*/g, '%2a'); } _getOriginURL(url) { -- cgit v1.2.3