From fb973bac17374b909e4170d0cdbe5981248cab01 Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Thu, 29 Sep 2016 16:05:07 +0900 Subject: [PATCH] Parser fix --- src/handlers/xdgurl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/xdgurl.cpp b/src/handlers/xdgurl.cpp index 143a16b..fb93f12 100644 --- a/src/handlers/xdgurl.cpp +++ b/src/handlers/xdgurl.cpp @@ -50,7 +50,7 @@ QJsonObject XdgUrl::_parse() } if (query.hasQueryItem("filename") && !query.queryItemValue("filename").isEmpty()) { - meta["filename"] = query.queryItemValue("filename", QUrl::FullyDecoded).split("?").at(0); + meta["filename"] = QUrl(query.queryItemValue("filename", QUrl::FullyDecoded)).fileName(); } if (!meta["url"].toString().isEmpty() && meta["filename"].toString().isEmpty()) { -- GitLab