Skip to content

RDKB-63298: Font size issue while accessing from iOS#104

Merged
GoutamD2905 merged 1 commit intodevelopfrom
bug/RDKB-63298
Feb 25, 2026
Merged

RDKB-63298: Font size issue while accessing from iOS#104
GoutamD2905 merged 1 commit intodevelopfrom
bug/RDKB-63298

Conversation

@pavankumar464
Copy link
Contributor

Reason for change: Font size issue while accessing Gateway management
restricted page from iOS

Test Procedure: Test for Gateway management restricted page from iOS

Risks:low
Priority: P2
Signed-off-by: pavankumarreddy_balireddy@comcast.com

Reason for change: Font size issue while accessing Gateway management
 restricted page from iOS

Test Procedure: Test for Gateway management restricted page from iOS

Risks:low
Priority: P2
Signed-off-by: pavankumarreddy_balireddy@comcast.com
@pavankumar464 pavankumar464 requested a review from a team as a code owner February 25, 2026 05:54
Copilot AI review requested due to automatic review settings February 25, 2026 05:54
@pavankumar464 pavankumar464 requested a review from a team as a code owner February 25, 2026 05:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR attempts to address an iOS font size issue on the Gateway management restricted page by modifying the getBrandProductName() utility function to wrap its return value in a <span> tag. The change also includes a whitespace correction for consistency.

Changes:

  • Modified getBrandProductName() function to return HTML-wrapped text instead of plain string
  • Fixed indentation from spaces to tabs on line 901 for consistency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

$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>';
Copy link

Copilot AI Feb 25, 2026

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.

Copilot uses AI. Check for mistakes.
$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>';
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change introduces HTML markup into a utility function that previously returned plain text data. This violates the separation of concerns principle by mixing presentation (HTML structure) with data retrieval logic. All other functions in this file return plain data, not HTML markup. If the iOS font size issue needs to be addressed, it should be done through CSS styling (e.g., using media queries or browser-specific styles) rather than by injecting HTML wrapper elements in the utility function. This approach would also make it easier to apply consistent styling across all usages and would be more maintainable.

Suggested change
$ret = '<span>'+$brandName+' '+$productName+'</span>';
$ret = $brandName+' '+$productName;

Copilot uses AI. Check for mistakes.
$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>';
Copy link

Copilot AI Feb 25, 2026

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.

Copilot uses AI. Check for mistakes.
@GoutamD2905 GoutamD2905 merged commit 46fcf14 into develop Feb 25, 2026
12 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants