Skip to content

Commit 0e6f76e

Browse files
Merge pull request #250 from advanced-security/knewbury01/update-ODataModel
Add v4 support for ODataModel
2 parents ad612bb + 110f875 commit 0e6f76e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/RemoteFlowSources.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,16 @@ class ODataServiceModel extends UI5ExternalModel {
7777
)
7878
or
7979
/*
80-
* A constructor call to sap.ui.model.odata.v2.ODataModel.
80+
* A constructor call to sap.ui.model.odata.v2.ODataModel or sap.ui.model.odata.v4.ODataModel.
8181
*/
8282

8383
this instanceof NewNode and
8484
(
8585
exists(RequiredObject oDataModel |
8686
oDataModel.asSourceNode().flowsTo(this.getCalleeNode()) and
87-
oDataModel.getDependency() = "sap/ui/model/odata/v2/ODataModel"
87+
oDataModel.getDependency() in [
88+
"sap/ui/model/odata/v2/ODataModel", "sap/ui/model/odata/v4/ODataModel"
89+
]
8890
)
8991
or
9092
this.getCalleeName() = "ODataModel"

0 commit comments

Comments
 (0)