summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkcookie_p.h
diff options
context:
space:
mode:
authorPeter Hartmann <peter.hartmann@trolltech.com>2009-05-07 11:15:27 (GMT)
committerPeter Hartmann <peter.hartmann@trolltech.com>2009-05-07 11:19:40 (GMT)
commit27aae6a5bb4858897547f2f436bc1cdf2e8bfbd4 (patch)
tree3e2f6152cb400bc84ef83c6aaae233e293850665 /src/network/access/qnetworkcookie_p.h
parent2841ac47dbd646539cc863a030be4a0ac6a077f4 (diff)
downloadQt-27aae6a5bb4858897547f2f436bc1cdf2e8bfbd4.zip
Qt-27aae6a5bb4858897547f2f436bc1cdf2e8bfbd4.tar.gz
Qt-27aae6a5bb4858897547f2f436bc1cdf2e8bfbd4.tar.bz2
fix parsing cookies in multiple lines
original patch by Benjamin Meyer. Handle multiple cookies split by new lines in a cleaner way. Parsing the combined string was error prone. Splitting them and sending each line through our header parser is more robust, and has more obvious code paths. Tested by logging into wordpress.com, facebook.com etc. Reviewed-by: Thiago Task-number: 251959
Diffstat (limited to 'src/network/access/qnetworkcookie_p.h')
-rw-r--r--src/network/access/qnetworkcookie_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/access/qnetworkcookie_p.h b/src/network/access/qnetworkcookie_p.h
index 83ef14a..0c41322 100644
--- a/src/network/access/qnetworkcookie_p.h
+++ b/src/network/access/qnetworkcookie_p.h
@@ -61,6 +61,7 @@ class QNetworkCookiePrivate: public QSharedData
{
public:
inline QNetworkCookiePrivate() : secure(false), httpOnly(false) { }
+ static QList<QNetworkCookie> parseSetCookieHeaderLine(const QByteArray &cookieString);
QDateTime expirationDate;
QString domain;