From 54a2e4133fc1edc06b287e9dfe82a8b3f08bd2c7 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Thu, 27 Jul 2023 14:13:07 +0200 Subject: [PATCH] New test: no-backticks-in-js-handlers.html --- t3sts/semgrep_rules/no-backticks-in-js-handlers.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 t3sts/semgrep_rules/no-backticks-in-js-handlers.html diff --git a/t3sts/semgrep_rules/no-backticks-in-js-handlers.html b/t3sts/semgrep_rules/no-backticks-in-js-handlers.html new file mode 100644 index 00000000..807101f3 --- /dev/null +++ b/t3sts/semgrep_rules/no-backticks-in-js-handlers.html @@ -0,0 +1,6 @@ +// ruleid: no-backticks-in-js-handlers +onclick="call('good', `{{var}}`, `{{var}}`)" +// ruleid: no-backticks-in-js-handlers +onclick='call("good", `{{var}}`, `{{var}}`)' +// ruleid: no-backticks-in-js-handlers +onclick=call('good', `{{var}}`, `{{var}}`)