Opened 3 years ago

Closed 2 years ago

Last modified 2 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:
Needs tests: Patch needs improvement:
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 Changed 2 years ago by Tim Graham <timograham@…>

  • Resolution set to fixed
  • Status changed from new to closed

In 234ca6c61d27d1cd430a5290ff858c25afb93098:

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

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

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