Postman request body:
{{{
----------------------------677822685948106391633425
Content-Disposition: form-data; name="file"; filename="测试.txt";
filename*="UTF-8''%E6%B5%8B%E8%AF%95.txt"
Content-Type: text/plain
test
----------------------------677822685948106391633425--
}}}
django got filename is `测试.txt"` not `测试.txt`
This is not a bug of Django. But I suggest Django do some compatibility
processing.
CPython is also compatible with this situation.
[https://hg.python.org/cpython/file/default/Lib/test/test_email/test_headerregistry.py]
[https://github.com/django/django/pull/12485]
--
Ticket URL: <https://code.djangoproject.com/ticket/31293>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => 007
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/31293#comment:1>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31293#comment:2>
* stage: Unreviewed => Accepted
Comment:
Thanks for the report. First glance at the PR looks reasonable.
--
Ticket URL: <https://code.djangoproject.com/ticket/31293#comment:3>
* stage: Accepted => Ready for checkin
Comment:
PR looks correct. Thank you.
--
Ticket URL: <https://code.djangoproject.com/ticket/31293#comment:4>
* stage: Ready for checkin => Accepted
Comment:
GitHub is momentarily dying on me. I have small edits to push. I will try
again later.
--
Ticket URL: <https://code.djangoproject.com/ticket/31293#comment:5>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/31293#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"e65fea9292ffdeb9bb76062f6cb2a5ff514ae969" e65fea92]:
{{{
#!CommitTicketReference repository=""
revision="e65fea9292ffdeb9bb76062f6cb2a5ff514ae969"
Fixed #31293 -- Allowed MultiPartParser to handle double-quoted encoded
headers.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31293#comment:7>