mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
use RegExpCreationNode
This commit is contained in:
@@ -103,7 +103,7 @@ module TaintedPath {
|
||||
if
|
||||
exists(DataFlow::Node splitBy | splitBy = mcn.getArgument(0) |
|
||||
splitBy.mayHaveStringValue("/") or
|
||||
any(DataFlow::RegExpLiteralNode reg | reg.getRoot().getAMatchedString() = "/")
|
||||
any(DataFlow::RegExpCreationNode reg | reg.getRoot().getAMatchedString() = "/")
|
||||
.flowsTo(splitBy)
|
||||
)
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user