mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
fixup! Ref T689 Add validation that XP model directories are within the XP sim directory.
This commit is contained in:
@@ -571,7 +571,7 @@ namespace BlackSimPlugin
|
||||
{
|
||||
Q_ASSERT(package.s.endsWith('/'));
|
||||
package.s.chop(1);
|
||||
if (CDirectoryUtils::isSubDirectoryOf(package.s, getSimulatorInternals().getSimulatorInstallationDirectory()))
|
||||
if (CDirectoryUtils::isSubDirectoryOf(package.s, getSimulatorSettings().getSimulatorDirectoryOrDefault()))
|
||||
{
|
||||
m_trafficProxy->loadPlanesPackage(package.s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user