[issue26527] CGI library - Using unicode in header fields

2020-03-22 Thread Martin Panter

Martin Panter  added the comment:

I’m not an expert on the topic, but it sounds like this might be a duplicate of 
Issue 23434, which has more discussion.

--
nosy: +martin.panter
resolution:  -> duplicate
status: open -> pending
superseder:  -> support encoded filename in Content-Disposition for HTTP in 
cgi.FieldStorage

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26527] CGI library - Using unicode in header fields

2016-03-10 Thread Olivier Le Moign

Olivier Le Moign added the comment:

I guess this is fixed by https://pypi.python.org/pypi/rfc6266. Could have 
looked better, sorry.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26527] CGI library - Using unicode in header fields

2016-03-10 Thread Olivier Le Moign

New submission from Olivier Le Moign:

According to RFC5987 (http://tools.ietf.org/html/rfc5987), it's possible to use 
other encoding than ASCII in header fields. 
Specifically in the CGI library, posting files with non-ASCII characters will 
lead the header to be (for example) filename*=utf-8"x" which is not 
recognised:

l 513

if 'filename' in pdict:
self.filename = pdict['filename']
self._binary_file = self.filename is not None 

The file will thus be treated as a string.
The correction isn't too big but being a total newbie, I'm a bit scared to 
suggest a patch.

--
components: Unicode
messages: 261491
nosy: ezio.melotti, haypo, olemoign
priority: normal
severity: normal
status: open
title: CGI library - Using unicode in header fields
type: behavior
versions: Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com