summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-04-27 17:32:49 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-04-27 17:32:49 +0000
commitbe594f6c8ca32b2acb02b381278033924f9a878e (patch)
tree5628d1f6ac2f3e6725c71a63b864ebddb53bcfbe /rbutil
parent3fa414d9591ddeb1b5971d16581ce75e4a53997a (diff)
downloadrockbox-be594f6c8ca32b2acb02b381278033924f9a878e.tar.gz
rockbox-be594f6c8ca32b2acb02b381278033924f9a878e.tar.bz2
rockbox-be594f6c8ca32b2acb02b381278033924f9a878e.zip
percent-encode the query parts of a request too, not only the path.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17263 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/httpget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/httpget.cpp b/rbutil/rbutilqt/httpget.cpp
index 1ceaeb002c..40ef62f9c7 100644
--- a/rbutil/rbutilqt/httpget.cpp
+++ b/rbutil/rbutilqt/httpget.cpp
@@ -221,7 +221,8 @@ bool HttpGet::getFile(const QUrl &url)
if(url.hasQuery()) {
query = "?";
for(int i = 0; i < qitems.size(); i++)
- query += qitems.at(i).first + "=" + qitems.at(i).second + "&";
+ query += QUrl::toPercentEncoding(qitems.at(i).first, "/") + "="
+ + QUrl::toPercentEncoding(qitems.at(i).second, "/") + "&";
qDebug() << query;
}