Skip to content

Commit 1e6893e

Browse files
haby0yoff
andauthored
Update python/ql/src/experimental/semmle/python/security/injection/CsvInjection.qll
Co-authored-by: yoff <[email protected]>
1 parent 8f2013c commit 1e6893e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/ql/src/experimental/semmle/python/security/injection/CsvInjection.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ class CsvInjectionFlowConfig extends TaintTracking::Configuration {
2222
}
2323

2424
private class StartsWithCheck extends DataFlow::BarrierGuard {
25-
Attribute attr;
25+
DataFlow::MethodCallNode mc;
2626

2727
StartsWithCheck() {
28-
this.(CallNode).getNode().getFunc() = attr and
29-
attr.getName() = "startswith"
28+
this = mc.asCfgNode() and
29+
mc.calls(_, "startswith")
3030
}
3131

3232
override predicate checks(ControlFlowNode node, boolean branch) {
33-
node = attr.getObject().getAFlowNode() and
33+
node = mc.getObject().asCfgNode() and
3434
branch = true
3535
}
3636
}

0 commit comments

Comments
 (0)