We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f2013c commit 1e6893eCopy full SHA for 1e6893e
python/ql/src/experimental/semmle/python/security/injection/CsvInjection.qll
@@ -22,15 +22,15 @@ class CsvInjectionFlowConfig extends TaintTracking::Configuration {
22
}
23
24
private class StartsWithCheck extends DataFlow::BarrierGuard {
25
- Attribute attr;
+ DataFlow::MethodCallNode mc;
26
27
StartsWithCheck() {
28
- this.(CallNode).getNode().getFunc() = attr and
29
- attr.getName() = "startswith"
+ this = mc.asCfgNode() and
+ mc.calls(_, "startswith")
30
31
32
override predicate checks(ControlFlowNode node, boolean branch) {
33
- node = attr.getObject().getAFlowNode() and
+ node = mc.getObject().asCfgNode() and
34
branch = true
35
36
0 commit comments