Skip to content

Commit

Permalink
Helix: Decode HTML entities in the test comment field (#15141
Browse files Browse the repository at this point in the history
I have observed the test comment coming back from Helix with `"`
and friends in it.

It ends badly as you might imagine.

This unescape will be a no-op if the data is already well-formed.
  • Loading branch information
DHowett authored Apr 10, 2023
1 parent ea44375 commit 90bbd29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/Helix/ProcessHelixFiles.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ foreach ($testRun in $testRuns.value)

foreach ($testResult in $testResults.value)
{
$info = ConvertFrom-Json $testResult.comment
$info = ConvertFrom-Json ([System.Web.HttpUtility]::HtmlDecode($testResult.comment))
$helixJobId = $info.HelixJobId
$helixWorkItemName = $info.HelixWorkItemName

Expand Down

0 comments on commit 90bbd29

Please sign in to comment.