mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Use StringComparison.Ordinal insted of StringComparison.CurrentCulture (#14298)
This commit is contained in:
@@ -116,7 +116,7 @@ namespace Microsoft.PowerShell
|
||||
{
|
||||
Environment.SetEnvironmentVariable("PATH", pshome);
|
||||
}
|
||||
else if (!path.StartsWith(pshome))
|
||||
else if (!path.StartsWith(pshome, StringComparison.Ordinal))
|
||||
{
|
||||
Environment.SetEnvironmentVariable("PATH", pshome + path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user