Check for relative paths in ExternalCommandHelper::CopyBlocks.
This commit is contained in:
parent
5d1c03b9d8
commit
949ce01ae4
|
@ -172,6 +172,13 @@ QVariantMap ExternalCommandHelper::CopyBlocks(const QString& sourceDevice, const
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check for relative paths
|
||||||
|
std::filesystem::path sourcePath(sourceDevice.toStdU16String());
|
||||||
|
std::filesystem::path targetPath(targetDevice.toStdU16String());
|
||||||
|
if(sourcePath.is_relative() || targetPath.is_relative()) {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
QVariantMap reply;
|
QVariantMap reply;
|
||||||
reply[QStringLiteral("success")] = true;
|
reply[QStringLiteral("success")] = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue