mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix a logic bug in MapSecurityZone (#13921)
This commit is contained in:
@@ -234,7 +234,7 @@ namespace System.Management.Automation
|
||||
// has 'dot' in it, the file will be treated as in Internet security zone. Otherwise, it's
|
||||
// in Intranet security zone.
|
||||
string hostName = uri.Host;
|
||||
return hostName.Contains('.') ? SecurityZone.Intranet : SecurityZone.Internet;
|
||||
return hostName.Contains('.') ? SecurityZone.Internet : SecurityZone.Intranet;
|
||||
}
|
||||
|
||||
string root = Path.GetPathRoot(filePath);
|
||||
|
||||
Reference in New Issue
Block a user