Don't write possible secrets to verbose stream for web cmdlets (#14788)

This commit is contained in:
Travis Plunk 2021-02-15 11:15:11 -08:00 committed by GitHub
parent 11a5d940c4
commit 0fffdf58ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -1508,7 +1508,6 @@ namespace Microsoft.PowerShell.Commands
string reqVerboseMsg = string.Format(CultureInfo.CurrentCulture,
WebCmdletStrings.WebMethodInvocationVerboseMsg,
request.Method,
request.RequestUri,
requestContentLength);
WriteVerbose(reqVerboseMsg);

View file

@ -250,7 +250,7 @@
<value>Following rel link {0}</value>
</data>
<data name="WebMethodInvocationVerboseMsg" xml:space="preserve">
<value>{0} {1} with {2}-byte payload</value>
<value>{0} with {1}-byte payload</value>
</data>
<data name="WebMethodResumeFailedVerboseMsg" xml:space="preserve">
<value>The remote server indicated it could not resume downloading. The local file will be overwritten.</value>