Skip to content

Commit 75557a1

Browse files
committed
Fix setSanitizeContent and setSanitizeValue name capitalization
1 parent 003cfdb commit 75557a1

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
@@ -984,7 +984,9 @@ class UI5Control extends TUI5Control {
984984
or
985985
/* 3. `sanitizeContent` attribute is set programmatically using a setter. */
986986
exists(CallNode node |
987-
node = this.getAReference().getAMemberCall("setS" + propName.suffix(1)) and
987+
node =
988+
this.getAReference()
989+
.getAMemberCall("set" + propName.prefix(1).toUpperCase() + propName.suffix(1)) and
988990
not node.getArgument(0).mayHaveBooleanValue(val.booleanNot())
989991
)
990992
}

0 commit comments

Comments
 (0)