Add regex injections for php (#3592)

This commit is contained in:
gbprod 2022-10-28 14:22:16 +02:00 committed by GitHub
parent 3cab7b4346
commit 287ffdccc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,13 @@
(comment) @phpdoc
;; regex
((function_call_expression
function: (_) @_preg_func_identifier
arguments: (arguments . (argument (_ (string_value) @regex))))
(#lua-match? @_preg_func_identifier "^preg_"))
;; bash
((function_call_expression
@ -11,4 +18,3 @@
"escapeshellcmd" "exec" "passthru" "proc_open" "shell_exec" "system"))
((expression_statement (shell_command_expression (string_value) @bash)))