mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix handling of extraMatch parameter in trusted-click-element scriptlet
Related feedback: https://old.reddit.com/r/uBlockOrigin/comments/1qry49n/
This commit is contained in:
parent
719798329b
commit
a8ad95394d
1 changed files with 1 additions and 1 deletions
|
|
@ -1828,7 +1828,7 @@ function trustedClickElement(
|
|||
const pos2 = s2.indexOf('=');
|
||||
const key = pos2 !== -1 ? s2.slice(0, pos2).trim() : s2;
|
||||
const value = pos2 !== -1 ? s2.slice(pos2+1).trim() : '';
|
||||
out.re = new RegExp(`^${this.escapeRegexChars(key)}=${this.escapeRegexChars(value)}`);
|
||||
out.re = new RegExp(`^${safe.escapeRegexChars(key)}=${safe.escapeRegexChars(value)}`);
|
||||
return out;
|
||||
}).filter(details => details !== undefined);
|
||||
const allCookies = assertions.some(o => o.type === 'cookie')
|
||||
|
|
|
|||
Loading…
Reference in a new issue