For example if someone tries to use a filename like {{{u'файл'}}}, this
should be sent to the server as
{{{filename*=utf-8''%D1%84%D0%B0%D0%B9%D0%BB}}}. This is not properly
parsed by Django and so it appears to not have a filename at all.
I don't advise immediately parsing and decoding the value because of
attacks that are possible through utf-7 and other character sets.
--
Ticket URL: <https://code.djangoproject.com/ticket/23047>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Currently working on a patch now.
--
Ticket URL: <https://code.djangoproject.com/ticket/23047#comment:1>
* status: new => closed
* resolution: => duplicate
Comment:
Duplicate of #22971. May I ask you to review the patch there? And maybe
tell us more about possible attacks.
--
Ticket URL: <https://code.djangoproject.com/ticket/23047#comment:2>
Comment (by ceaess):
Happy to review; a cursory look at the patch makes it seem incomplete but
will provide further commentary on the other ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/23047#comment:3>