Commit 09916db1 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[screenshot] Encode result URI

Make sure non-URL characters like spaces are percent encoded

(cherry picked from commit 6990e88a)
parent 3b734677
Pipeline #185804 passed with stage
in 54 seconds
......@@ -117,8 +117,7 @@ uint ScreenshotPortal::Screenshot(const QDBusObjectPath &handle,
return 1;
const QString resultFileName = QStringLiteral("file://") + filename;
results.insert(QStringLiteral("uri"), resultFileName);
results.insert(QStringLiteral("uri"), QUrl::fromLocalFile(filename).toString(QUrl::FullyEncoded));
return 0;
Supports Markdown
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