diff --git a/sddmauthhelper.cpp b/sddmauthhelper.cpp --- a/sddmauthhelper.cpp +++ b/sddmauthhelper.cpp @@ -373,19 +373,12 @@ ActionReply SddmAuthHelper::uninstalltheme(const QVariantMap &args) { const QString themePath = args[QStringLiteral("filePath")].toString(); - const QString themesBaseDir = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("sddm/themes"), QStandardPaths::LocateDirectory); QDir dir(themePath); if (!dir.exists()) { return ActionReply::HelperErrorReply(); } - //validate the themePath is directly inside the themesBaseDir - QDir baseDir(themesBaseDir); - if(baseDir.absoluteFilePath(dir.dirName()) != dir.absolutePath()) { - return ActionReply::HelperErrorReply(); - } - if (!dir.removeRecursively()) { return ActionReply::HelperErrorReply(); }