Commit 949ce01a authored by Andrius Štikonas's avatar Andrius Štikonas
Browse files

Check for relative paths in ExternalCommandHelper::CopyBlocks.

parent 5d1c03b9
Pipeline #133408 passed with stage
in 55 seconds
......@@ -172,6 +172,13 @@ QVariantMap ExternalCommandHelper::CopyBlocks(const QString& sourceDevice, const
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;
reply[QStringLiteral("success")] = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment