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 91f43a7 commit fedd32fCopy full SHA for fedd32f
javascript/ql/src/semmle/javascript/frameworks/NoSQL.qll
@@ -812,8 +812,8 @@ private module MarsDB {
812
/** Gets a data flow node referring to a MarsDB collection. */
813
private DataFlow::SourceNode getACollection(DataFlow::TypeTracker t) {
814
t.start() and
815
- // [new] Collection(...)
816
- result = getADb(DataFlow::TypeTracker::end()).getAPropertyRead("Collection").getAnInvocation()
+ // new Collection(...)
+ result = getADb(DataFlow::TypeTracker::end()).getAPropertyRead("Collection").getAnInstantiation()
817
or
818
exists(DataFlow::TypeTracker t2 | result = getACollection(t2).track(t2, t))
819
}
0 commit comments