Fixed destination path not being checked
This commit is contained in:
@@ -149,6 +149,9 @@ namespace Barotrauma
|
|||||||
if (!IsPathAllowedException(path))
|
if (!IsPathAllowedException(path))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!IsPathAllowedException(destination))
|
||||||
|
return;
|
||||||
|
|
||||||
File.Move(path, destination, true);
|
File.Move(path, destination, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user