summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkcookie.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-03-26 15:00:53 (GMT)
committerPeter Hartmann <peter.hartmann@trolltech.com>2009-03-30 15:44:23 (GMT)
commit37b61133eed38dbb8a7b87fce18b6ea016469fdc (patch)
tree7962d40e18be48613e1d3c82d72972df55d8a3d0 /src/network/access/qnetworkcookie.cpp
parentece28c5e497c5a7ce1f7671094c5ff3e58d176c5 (diff)
downloadQt-37b61133eed38dbb8a7b87fce18b6ea016469fdc.zip
Qt-37b61133eed38dbb8a7b87fce18b6ea016469fdc.tar.gz
Qt-37b61133eed38dbb8a7b87fce18b6ea016469fdc.tar.bz2
Fix parsing of multiple cookies that are separated by a newline
Signed-off-by: Peter Hartmann <peter.hartmann@trolltech.com>
Diffstat (limited to 'src/network/access/qnetworkcookie.cpp')
-rw-r--r--src/network/access/qnetworkcookie.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qnetworkcookie.cpp b/src/network/access/qnetworkcookie.cpp
index 4846618..fed0afc 100644
--- a/src/network/access/qnetworkcookie.cpp
+++ b/src/network/access/qnetworkcookie.cpp
@@ -931,7 +931,7 @@ QList<QNetworkCookie> QNetworkCookie::parseCookies(const QByteArray &cookieStrin
// When there are multiple SetCookie headers they are join with a new line
// \n will always be the start of a new cookie
- int endOfSetCookie = cookieString.indexOf('\n');
+ int endOfSetCookie = cookieString.indexOf('\n', position);
if (endOfSetCookie == -1)
endOfSetCookie = length;