[*] security: bIsIntranetTrusted not properly respected

This commit is contained in:
Reece Wilson 2023-09-17 13:57:58 +01:00
parent afa2cb5944
commit 523abaf0bb

View File

@ -53,7 +53,7 @@ namespace Aurora::IO::FS
return !AuFS::FileExists(path);
}
return (gRuntimeConfig.fio.bIsIntranetTrusted && AuStringContains(content, "ZoneId=1\r\n")) || // intranet
return (!gRuntimeConfig.fio.bIsIntranetTrusted && AuStringContains(content, "ZoneId=1\r\n")) || // intranet
AuStringContains(content, "ZoneId=3\r\n") || // internet
AuStringContains(content, "ZoneId=4\r\n"); // untrusted
}