Opened 13 years ago
Closed 13 years ago
#17455 closed Bug (fixed)
CachedFilesMixin fails when postprocessing files with url('data:*')
Reported by: | tkaemming | Owned by: | Jannis Leidel |
---|---|---|---|
Component: | contrib.staticfiles | Version: | 1.4-alpha-1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | yes |
Easy pickings: | yes | UI/UX: | no |
Description
Attachments (1)
Change History (7)
by , 13 years ago
Attachment: | ticket-17455.diff added |
---|
comment:1 by , 13 years ago
Easy pickings: | set |
---|---|
Has patch: | set |
Owner: | changed from | to
added patch, if tests are needed let me know and i'll gladly provide them
comment:2 by , 13 years ago
Type: | Uncategorized → Bug |
---|
comment:3 by , 13 years ago
Needs tests: | set |
---|---|
Patch needs improvement: | set |
Triage Stage: | Unreviewed → Accepted |
While we're at it, I think the right prefixes to ignore are ('http://', 'https://', '//', 'data:')
— that would avoid False positives on URLs such as http_ftw/css/mysite.css
, and also support protocol-relative URLs.
Version 0, edited 13 years ago by (next)
comment:4 by , 13 years ago
Owner: | changed from | to
---|
comment:5 by , 13 years ago
Taking ownership of this since there is a downstream bug report, too -- https://github.com/jezdez/django-staticfiles/pull/18
Note:
See TracTickets
for help on using tickets.
patch to add data: to list of tuple prefixes for url post-processing