Skip to content

Commit f6b759d

Browse files
committed
Restrict definition of ui5 xml control slightly
1 parent 2e9aaf6 commit f6b759d

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

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

686686
private newtype TUI5Control =
687-
TXmlControl(XmlElement control) or
687+
TXmlControl(XmlElement control) { control.getFile().getName().matches("%.view.xml") } or
688688
TJsonControl(JsonObject control) {
689689
exists(JsonView view | control.getParent() = view.getRoot().getPropValue("content"))
690690
} or

0 commit comments

Comments
 (0)