Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with semicolon in filename #24

Closed
sylvainvivien opened this issue Oct 18, 2009 · 1 comment
Closed

Crash with semicolon in filename #24

sylvainvivien opened this issue Oct 18, 2009 · 1 comment

Comments

@sylvainvivien
Copy link

If I upload a file with a semicolon (;) ["my;file.pdf"], Tornado
crashes

File "tornado\wsgi.py", line 172, in _parse_mime_body
name, name_value = name_part.strip().split("=", 1)
ValueError: need more than 1 value to unpack

Semicolon in filename is most of the time nerver well handled in
python (don't know why it is not fixed... or maybe I don't know how it
works) and we "often' get : "my" instead of "my;file.pdf".

more info here : http://groups.google.com/group/python-tornado/browse_frm/thread/6e6ade3b63667fd0/e9aab86519647dd8

@sylvainvivien
Copy link
Author

Hi,

It seems that this bug is not fixed.
Even if semicoon is rarely used in a filename, it crashes Tornado.

So, just a little up :)

Sylvain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants