--
Ticket URL: <https://code.djangoproject.com/ticket/32571>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/32571#comment:1>
Comment (by AdamDonna):
Should the response in this scenario be something like this line? Or would
a different response reason make more sense
https://github.com/django/django/blob/45814af6197cfd8f4dc72ee43b90ecde305a1d5a/django/middleware/csrf.py#L248
--
Ticket URL: <https://code.djangoproject.com/ticket/32571#comment:2>
Comment (by Mariusz Felisiak):
Replying to [comment:2 AdamDonna]:
> Should the response in this scenario be something like this line? Or
would a different response reason make more sense
https://github.com/django/django/blob/45814af6197cfd8f4dc72ee43b90ecde305a1d5a/django/middleware/csrf.py#L248
Yes, we should reject immediately.
--
Ticket URL: <https://code.djangoproject.com/ticket/32571#comment:3>
Comment (by AdamDonna):
Great i've got a PR up for this. Are there any docs that need to be
updated?
https://github.com/django/django/pull/14151
--
Ticket URL: <https://code.djangoproject.com/ticket/32571#comment:4>
* owner: nobody => AdamDonna
* status: new => assigned
* has_patch: 0 => 1
* stage: Accepted => Ready for checkin
Comment:
Replying to [comment:4 AdamDonna]:
> Great i've got a PR up for this. Are there any docs that need to be
updated?
> https://github.com/django/django/pull/14151
No need, thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/32571#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"e49fdfa405fcacb59d7ff2f321a7ddbc65dfc68b" e49fdfa4]:
{{{
#!CommitTicketReference repository=""
revision="e49fdfa405fcacb59d7ff2f321a7ddbc65dfc68b"
Fixed #32571 -- Made CsrfViewMiddleware handle invalid URLs in Referer
header.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32571#comment:6>