Skip to content

Commit 5a3aed3

Browse files
committed
Restrict definition of ui5 xml control slightly
1 parent f6b759d commit 5a3aed3

File tree

1 file changed

+4
-1
lines changed
  • javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,10 @@ class XmlView extends UI5View instanceof XmlFile {
684684
}
685685

686686
private newtype TUI5Control =
687-
TXmlControl(XmlElement control) { control.getFile().getName().matches("%.view.xml") } or
687+
TXmlControl(XmlElement control) {
688+
control.getFile().getName().matches("%.view.xml") and
689+
control.getNamespace().toString().matches("%sap%")
690+
} or
688691
TJsonControl(JsonObject control) {
689692
exists(JsonView view | control.getParent() = view.getRoot().getPropValue("content"))
690693
} or

0 commit comments

Comments
 (0)