Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#19006 closed Bug (fixed)

Content-Disposition example does not work in certain browsers if the filename has a space

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

https://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpResponse

If the file has a space, you need to wrap it in quotes or certain browsers (Firefox, at least, it works fine in recent versions of Chrome) will misinterpret the filename and only retain the parts before the space.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html says that it should be quoted.

Change History (2)

comment:1 by Tim Graham <timograham@…>, 12 years ago

Resolution: fixed
Status: newclosed

In 234ca6c61d27d1cd430a5290ff858c25afb93098:

Fixed #19006 - Quoted filenames in Content-Disposition header.

comment:2 by Tim Graham <timograham@…>, 12 years ago

In 8868a067e02b4fe9f1c669f06e90fc28171b9758:

[1.4.X] Fixed #19006 - Quoted filenames in Content-Disposition header.

Backport of 234ca6c61d from master

Note: See TracTickets for help on using tickets.
Back to Top