#29022: HashedFilesMixin does not properly skip protocol-relative urls when
STATIC_URL='/'
-------------------------------------+-------------------------------------
Reporter: Will Gulian | Owner: Adam
| Zapletal
Type: Bug | Status: assigned
Component: contrib.staticfiles | Version: 2.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Adam Zapletal):
* has_patch: 0 => 1
* owner: nobody => Adam Zapletal
* status: new => assigned
Comment:
It looks like adding back a simple check for protocol-relative URLs before
the `STATIC_URL` check will fix this. That seems reasonable to me if
Django is going to support setting `STATIC_URL` to `/`.
I opened a PR with this change and a regression test for discussion.
--
Ticket URL: <https://code.djangoproject.com/ticket/29022#comment:4>
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/0107018dd96e7bf7-6bb2d2a1-e3a2-4e0a-8a6a-99aab41b8354-000000%40eu-central-1.amazonses.com.