Skip to content

Commit 72dc1d0

Browse files
committed
Fix setSanitizeContent and setSanitizeValue name capitalization
1 parent 8f67f25 commit 72dc1d0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,9 @@ class UI5Control extends TUI5Control {
864864
or
865865
/* 3. `sanitizeContent` attribute is set programmatically using a setter. */
866866
exists(CallNode node |
867-
node = this.getAReference().getAMemberCall("setS" + propName.suffix(1)) and
867+
node =
868+
this.getAReference()
869+
.getAMemberCall("set" + propName.prefix(1).toUpperCase() + propName.suffix(1)) and
868870
not node.getArgument(0).mayHaveBooleanValue(val.booleanNot())
869871
)
870872
}

0 commit comments

Comments
 (0)