projects
/
contrib
/
qtwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79b7071
)
There was no '?' between path and query. Bug detected by someone on the internet.
author
Kurt Pattyn
<pattyn.kurt@gmail.com>
Fri, 6 Sep 2013 15:09:32 +0000
(17:09 +0200)
committer
Kurt Pattyn
<pattyn.kurt@gmail.com>
Fri, 6 Sep 2013 15:09:32 +0000
(17:09 +0200)
src/qwebsocket_p.cpp
patch
|
blob
|
history
diff --git
a/src/qwebsocket_p.cpp
b/src/qwebsocket_p.cpp
index
c06471e
..
054034c
100644
(file)
--- a/
src/qwebsocket_p.cpp
+++ b/
src/qwebsocket_p.cpp
@@
-245,7
+245,11
@@
void QWebSocketPrivate::open(const QUrl &url, bool mask)
m_isClosingHandshakeSent = false;
setRequestUrl(url);
- QString resourceName = url.path() + url.query();
+ QString resourceName = url.path();
+ if (!url.query().isEmpty())
+ {
+ resourceName.append("?" + url.query());
+ }
if (resourceName.isEmpty())
{
resourceName = "/";