File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
python/ql/src/experimental/semmle/python/frameworks Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ private module NoSql {
38
38
* Gets a reference to an initialized `Mongo` instance.
39
39
* See `pyMongo()`, `flask_PyMongo()`
40
40
*/
41
- private API:: Node mongoInstance ( ) {
41
+ private API:: Node mongoClientInstance ( ) {
42
42
result = pyMongo ( ) or
43
43
result = flask_PyMongo ( )
44
44
}
@@ -56,17 +56,17 @@ private module NoSql {
56
56
/**
57
57
* Gets a reference to a `Mongo` DB use.
58
58
*
59
- * See `mongoInstance ()`, `mongoDBInstance()`.
59
+ * See `mongoClientInstance ()`, `mongoDBInstance()`.
60
60
*/
61
61
private DataFlow:: LocalSourceNode mongoDB ( DataFlow:: TypeTracker t ) {
62
62
t .start ( ) and
63
63
(
64
64
exists ( SubscriptNode subscript |
65
- subscript .getObject ( ) = mongoInstance ( ) .getAUse ( ) .asCfgNode ( ) and
65
+ subscript .getObject ( ) = mongoClientInstance ( ) .getAUse ( ) .asCfgNode ( ) and
66
66
result .asCfgNode ( ) = subscript
67
67
)
68
68
or
69
- result .( DataFlow:: AttrRead ) .getObject ( ) = mongoInstance ( ) .getAUse ( )
69
+ result .( DataFlow:: AttrRead ) .getObject ( ) = mongoClientInstance ( ) .getAUse ( )
70
70
or
71
71
result = mongoDBInstance ( ) .getAUse ( )
72
72
)
You can’t perform that action at this time.
0 commit comments