summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuha Turunen <turunen@iki.fi>2014-10-04 15:09:58 -0700
committerJuha Turunen <turunen@iki.fi>2014-10-11 00:12:49 +0200
commit4b5468b8e2d848078981a3ae0e48e97abecc995f (patch)
treefe85cf6c4cbd10af4584afe9d9c8c69b0c83d328 /src
parentd8a92f5f272bfadd1f89c210a0f54f5f3947680c (diff)
downloadqtwebsockets-4b5468b8e2d848078981a3ae0e48e97abecc995f.tar.gz
Fix QWebSocket's handling of query parameters with encoded characters
QWebSocket used decoded version of the query part of the URL to construct the first line of the HTTP request. Task-number: QTBUG-41285 Change-Id: If16210f1b92e389dae8b1057a2d911122c31e2db Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/websockets/qwebsocket_p.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/websockets/qwebsocket_p.cpp b/src/websockets/qwebsocket_p.cpp
index f4f7ea4..e1a36c8 100644
--- a/src/websockets/qwebsocket_p.cpp
+++ b/src/websockets/qwebsocket_p.cpp
@@ -360,7 +360,7 @@ void QWebSocketPrivate::open(const QUrl &url, bool mask)
if (!resourceName.endsWith(QChar::fromLatin1('?'))) {
resourceName.append(QChar::fromLatin1('?'));
}
- resourceName.append(url.query());
+ resourceName.append(url.query(QUrl::FullyEncoded));
}
if (resourceName.isEmpty())
resourceName = QStringLiteral("/");