Skip to content

Commit 2e95cab

Browse files
authored
Merge pull request github#3234 from RasmusWL/python-modenise-files
Approved by BekaValentine
2 parents 7c5c9ea + a2440f0 commit 2e95cab

File tree

1 file changed

+1
-1
lines changed
  • python/ql/src/semmle/python/dataflow

1 file changed

+1
-1
lines changed

python/ql/src/semmle/python/dataflow/Files.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class OpenFileConfiguration extends TaintTracking::Configuration {
1111
OpenFileConfiguration() { this = "Open file configuration" }
1212

1313
override predicate isSource(DataFlow::Node src, TaintKind kind) {
14-
theOpenFunction().(FunctionObject).getACall() = src.asCfgNode() and
14+
src.asCfgNode() = Value::named("open").getACall() and
1515
kind instanceof OpenFile
1616
}
1717

0 commit comments

Comments
 (0)