Skip to content

Commit a8ad953

Browse files
committed
Fix handling of extraMatch parameter in trusted-click-element scriptlet
Related feedback: https://old.reddit.com/r/uBlockOrigin/comments/1qry49n/
1 parent 7197983 commit a8ad953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/resources/scriptlets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,7 @@ function trustedClickElement(
18281828
const pos2 = s2.indexOf('=');
18291829
const key = pos2 !== -1 ? s2.slice(0, pos2).trim() : s2;
18301830
const value = pos2 !== -1 ? s2.slice(pos2+1).trim() : '';
1831-
out.re = new RegExp(`^${this.escapeRegexChars(key)}=${this.escapeRegexChars(value)}`);
1831+
out.re = new RegExp(`^${safe.escapeRegexChars(key)}=${safe.escapeRegexChars(value)}`);
18321832
return out;
18331833
}).filter(details => details !== undefined);
18341834
const allCookies = assertions.some(o => o.type === 'cookie')

0 commit comments

Comments
 (0)