We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46cbeb0 commit 3855268Copy full SHA for 3855268
1 file changed
javascript/ql/src/semmle/javascript/security/dataflow/TaintedPath.qll
@@ -103,7 +103,7 @@ module TaintedPath {
103
if
104
exists(DataFlow::Node splitBy | splitBy = mcn.getArgument(0) |
105
splitBy.mayHaveStringValue("/") or
106
- any(DataFlow::RegExpLiteralNode reg | reg.getRoot().getAMatchedString() = "/")
+ any(DataFlow::RegExpCreationNode reg | reg.getRoot().getAMatchedString() = "/")
107
.flowsTo(splitBy)
108
)
109
then
0 commit comments