Commit 6990e88a authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[screenshot] Encode result URI

Make sure non-URL characters like spaces are percent encoded
parent d56851a5
Pipeline #185802 passed with stage
in 1 minute and 21 seconds
......@@ -120,8 +120,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