Skip to content

Commit

Permalink
fix(php): update parser and queries
Browse files Browse the repository at this point in the history
  • Loading branch information
clason committed May 4, 2024
1 parent c579d18 commit 4e21361
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lockfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -498,10 +498,10 @@
"revision": "96a17c4c2dd345dc61f330d040684538d634bbc2"
},
"php": {
"revision": "29838ad107f50b1f5f51a0beefa9c9d834fce2b3"
"revision": "58054be104db0809ea6f119514a4d904f95e5b5c"
},
"php_only": {
"revision": "29838ad107f50b1f5f51a0beefa9c9d834fce2b3"
"revision": "58054be104db0809ea6f119514a4d904f95e5b5c"
},
"phpdoc": {
"revision": "f285e338d328a03920a9bfd8dda78585c7ddcca3"
Expand Down
6 changes: 3 additions & 3 deletions queries/php_only/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
.
(argument
(_
(string_value) @injection.content))))
(string_content) @injection.content))))
(#set! injection.language "regex")
(#lua-match? @_preg_func_identifier "^preg_"))

Expand All @@ -31,13 +31,13 @@
.
(argument
(_
(string_value) @injection.content))))
(string_content) @injection.content))))
(#set! injection.language "bash")
(#any-of? @_shell_func_identifier
"shell_exec" "escapeshellarg" "escapeshellcmd" "exec" "passthru" "proc_open" "shell_exec"
"system"))

(expression_statement
(shell_command_expression
(string_value) @injection.content)
(string_content) @injection.content)
(#set! injection.language "bash"))

0 comments on commit 4e21361

Please sign in to comment.