diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-06-03 19:52:00 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-06-10 19:03:43 -0400 |
commit | 15ebb483d896916553ba5d729c22be4e545cc08a (patch) | |
tree | 8b2a0b55837c96d817e445b6aa299e06f8b6a47e /ext/js | |
parent | 97d0a158d06e03c889c0e8bb4a0ef8af8333c997 (diff) |
Fix _getMatchURL missing search and not sanitizing wildcards (#1727)
Diffstat (limited to 'ext/js')
-rw-r--r-- | ext/js/background/request-builder.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |