Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-21456

QNetworkCookie::parseCookies shouldn't support multiple comma separated cookies on one Set-Cookie header.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 4.8.0
    • Fix Version/s: 4.8.0
    • Component/s: Network: Cookies
    • Labels:
      None
    • Commits:
      8ba781b01e900148fec2e9d26485369b3295487f

      Description

      Other browsers allow commas in cookie values sent by HTTP servers, this cause incompatibilities with our cookie parsing implementation which strictly follows the standard and interprets commas in a cookie value as delimiter for a next cookie.

      RFC6265 recently clarified the behavior informally adopted by user agents over the last RFC and states that semicolons should be used to separate cookies and that "origin servers SHOULD NOT fold multiple Set-Cookie header fields into a single header field.".

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            jturcott Jocelyn Turcotte
            Reporter:
            jturcott Jocelyn Turcotte
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes