-
Notifications
You must be signed in to change notification settings - Fork 15
RDKB-63298: Font size issue while accessing from iOS #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -898,10 +898,10 @@ function updateURL(url){ | |||||
| * return: returns $brandName+' '+$productName | ||||||
| */ | ||||||
| function getBrandProductName(){ | ||||||
| $modelName = getStr("Device.DeviceInfo.ModelName"); | ||||||
| $modelName = getStr("Device.DeviceInfo.ModelName"); | ||||||
| $brandName = getStr("Device.DeviceInfo.X_RDKCENTRAL-COM_Syndication.RDKB_UIBranding.CloudUI.brandname"); | ||||||
| $productName = getStr("Device.DeviceInfo.X_RDKCENTRAL-COM_Syndication.RDKB_UIBranding.CloudUI.productname"); | ||||||
| $ret = $brandName+' '+$productName; | ||||||
| $ret = '<span>'+$brandName+' '+$productName+'</span>'; | ||||||
|
||||||
| $ret = '<span>'+$brandName+' '+$productName+'</span>'; | |
| $ret = $brandName+' '+$productName; |
Copilot
AI
Feb 25, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function comment states that it returns brandName + ' ' + productName (a plain string concatenation), but the implementation now returns HTML markup. The comment should be updated to accurately reflect that the function returns an HTML string with a span wrapper, or better yet, the implementation should be reverted to return plain text and the HTML wrapping should be handled in the presentation layer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The brandName and productName values retrieved from device settings are being inserted directly into HTML without sanitization. If these values contain special characters or malicious content, this could lead to Cross-Site Scripting (XSS) vulnerabilities. Consider using HTML escaping before concatenating these values into the HTML string, or preferably, handle the HTML wrapping in the presentation layer rather than in this utility function.