From 0fffdf58aba6f6f4380714bfb6b047f8ed4d9458 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Mon, 15 Feb 2021 11:15:11 -0800 Subject: [PATCH] Don't write possible secrets to verbose stream for web cmdlets (#14788) --- .../utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs | 1 - .../resources/WebCmdletStrings.resx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs index 841f6a60c7..3423b912fe 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs @@ -1508,7 +1508,6 @@ namespace Microsoft.PowerShell.Commands string reqVerboseMsg = string.Format(CultureInfo.CurrentCulture, WebCmdletStrings.WebMethodInvocationVerboseMsg, request.Method, - request.RequestUri, requestContentLength); WriteVerbose(reqVerboseMsg); diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/WebCmdletStrings.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/WebCmdletStrings.resx index fc1d25ac42..e3c64bd5ca 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/WebCmdletStrings.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/WebCmdletStrings.resx @@ -250,7 +250,7 @@ Following rel link {0} - {0} {1} with {2}-byte payload + {0} with {1}-byte payload The remote server indicated it could not resume downloading. The local file will be overwritten.