Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.3
-
None
-
c85c1ea36cd9ebe6a9ff970d7ba0ce8d08d5b27b
Description
When parsing cookie values with whitespaces, we only keep the value up to the first space:
e.g (file attached):
QList<QNetworkCookie> cookies = QNetworkCookie::parseCookies(QByteArray("a = b c d;"));
qDebug() << "Cookie value = " << cookies.first().value() << " (should be \"b c d\")";
returns "b" instead of "b c d".
As far as I can see, the spec says the key=value should not include whitespace. But it seems nobody follows that spec and such cookies can be assigned for Chrome and Firefox.
See https://bugs.webkit.org/show_bug.cgi?id=58973 for more infos.
Attachments
Issue Links
- relates to
-
QTBUG-18920 implement new cookie draft RFC test suite
- Closed