mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Use StringComparison.Ordinal insted of StringComparison.CurrentCulture (#14298)
This commit is contained in:
1 file changed
+1
-1
@@ -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