Skip to content

Commit 3855268

Browse files
committed
use RegExpCreationNode
1 parent 46cbeb0 commit 3855268

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

javascript/ql/src/semmle/javascript/security/dataflow/TaintedPath.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ module TaintedPath {
103103
if
104104
exists(DataFlow::Node splitBy | splitBy = mcn.getArgument(0) |
105105
splitBy.mayHaveStringValue("/") or
106-
any(DataFlow::RegExpLiteralNode reg | reg.getRoot().getAMatchedString() = "/")
106+
any(DataFlow::RegExpCreationNode reg | reg.getRoot().getAMatchedString() = "/")
107107
.flowsTo(splitBy)
108108
)
109109
then

0 commit comments

Comments
 (0)