#33212: Incorrect cookie parsing by django.http.cookie.parse_cookie
-----------------------------------+--------------------------------------
Reporter: Christos Georgiou | Owner: nobody
Type: Bug | Status: new
Component: Core (Other) | Version: 3.2
Severity: Normal | Resolution:
Keywords: cookies | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Comment (by Collin Anderson):
Actually, if we split on semicolon, and then follow Set-Cookie parsing
algorithm from https://datatracker.ietf.org/doc/html/rfc6265#section-5.2,
we're actually already following the spec really well as it is.
Here's a PR to make it match the Set-Cookie parsing spec slightly better
(and use first value rather than last value in the dictionary).
https://github.com/django/django/pull/15019
--
Ticket URL: <https://code.djangoproject.com/ticket/33212#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/062.a604eeaa3114566ede78399d326752c6%40djangoproject.com.