Skip to content

Encode HTML for bundle and spec names in simple.cfm#196

Merged
lmajano merged 1 commit into
Ortus-Solutions:developmentfrom
homestar9:patch-1
May 20, 2026
Merged

Encode HTML for bundle and spec names in simple.cfm#196
lmajano merged 1 commit into
Ortus-Solutions:developmentfrom
homestar9:patch-1

Conversation

@homestar9
Copy link
Copy Markdown
Contributor

@homestar9 homestar9 commented May 19, 2026

If you have HTML tags <> in your tests, it will break the output. This change fixes that by escaping HTML tags.

Jira Issues

https://ortussolutions.atlassian.net/browse/TESTBOX-449

Type of change

Please delete options that are not relevant.

  • Bug Fix
  • Improvement

If you have HTML tags `<>` in your tests, it will break the output. This change fixes that by escaping HTML tags.
Copilot AI review requested due to automatic review settings May 19, 2026 17:58
Copy link
Copy Markdown

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

Note

Copilot was unable to run its full agentic suite in this review.

Applies HTML encoding to user/test-supplied names rendered in the simple test report to mitigate XSS risk.

Changes:

  • Wrap thisBundle.name, suiteStats.name, and thisSpec.displayName with encodeForHtml() when outputting in the report.

@lmajano lmajano merged commit af4c1ba into Ortus-Solutions:development May 20, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants