Fixed destination path not being checked

This commit is contained in:
EvilFactory
2024-11-25 15:48:55 -03:00
parent 9e9ac6cd32
commit b4f264df04

View File

@@ -149,6 +149,9 @@ namespace Barotrauma
if (!IsPathAllowedException(path))
return;
if (!IsPathAllowedException(destination))
return;
File.Move(path, destination, true);
}