From 90bbd2927dd26ac36fc3759c7e97b2fc9918b6c9 Mon Sep 17 00:00:00 2001 From: "Dustin L. Howett" Date: Mon, 10 Apr 2023 15:17:29 -0500 Subject: [PATCH] Helix: Decode HTML entities in the test comment field (#15141 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. --- build/Helix/ProcessHelixFiles.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Helix/ProcessHelixFiles.ps1 b/build/Helix/ProcessHelixFiles.ps1 index dcd3608a5d4..ae9f7582812 100644 --- a/build/Helix/ProcessHelixFiles.ps1 +++ b/build/Helix/ProcessHelixFiles.ps1 @@ -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