diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-06-03 19:52:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-03 19:52:00 -0400 |
commit | c7e6c370953608bb5ff18143e9e80defdc09ad88 (patch) | |
tree | 8b2a0b55837c96d817e445b6aa299e06f8b6a47e /ext | |
parent | 97d0a158d06e03c889c0e8bb4a0ef8af8333c997 (diff) |
Fix _getMatchURL missing search and not sanitizing wildcards (#1727)
Diffstat (limited to 'ext')
-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) { |