diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs index b36916ce77..06a5459ad5 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs @@ -1199,7 +1199,7 @@ namespace Microsoft.PowerShell.Commands Dbg.Assert(parameter.Attributes == null || parameter.Attributes.Count == 0, "Attributes shouldn't get rehydrated"); - // sanitize - remove type constraint that are not whitelisted + // sanitize - remove type constraint that are not allowed if (!IsSafeTypeConstraint(parameter.ParameterType)) { parameter.ParameterType = null; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs index 3862df694e..1addb3dc5b 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs @@ -358,7 +358,7 @@ namespace Microsoft.PowerShell #if UNIX else if (char.IsControl(keyInfo.KeyChar)) { - // blacklist control characters + // deny list control characters continue; } #endif @@ -1785,7 +1785,7 @@ namespace Microsoft.PowerShell if (char.IsControl(keyInfo.KeyChar)) { - // blacklist control characters + // deny list control characters continue; } diff --git a/src/System.Management.Automation/CoreCLR/CorePsAssemblyLoadContext.cs b/src/System.Management.Automation/CoreCLR/CorePsAssemblyLoadContext.cs index bd83357807..c034d35555 100644 --- a/src/System.Management.Automation/CoreCLR/CorePsAssemblyLoadContext.cs +++ b/src/System.Management.Automation/CoreCLR/CorePsAssemblyLoadContext.cs @@ -113,7 +113,7 @@ namespace System.Management.Automation // - Value: strong name of the TPA that contains the type represented by Key. private readonly Dictionary _coreClrTypeCatalog; private readonly Lazy> _availableDotNetAssemblyNames; - private readonly HashSet _blackListedAssemblies = new HashSet(StringComparer.OrdinalIgnoreCase){ + private readonly HashSet _denyListedAssemblies = new HashSet(StringComparer.OrdinalIgnoreCase){ "System.Windows.Forms" }; @@ -331,7 +331,7 @@ namespace System.Management.Automation private bool TryFindInGAC(AssemblyName assemblyName, out string assemblyFilePath) { assemblyFilePath = null; - if (_blackListedAssemblies.Contains(assemblyName.Name)) + if (_denyListedAssemblies.Contains(assemblyName.Name)) { // DotNet catches and throws a new exception with no inner exception // We cannot change the message DotNet returns.