﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24209	Incorrectly formatted Content-Disposition headers may cause error.	Tom Christie	Raúl Cumplido	"MultiPartParser does not handle malformed `Content-Disposition` headers gracefully in some cases. If the client uses `filename*=` syntax, but omits the language enclosed in single quotes, then an error will be raised instead of gracefully ignoring the component.

This is introduced by the fix in https://code.djangoproject.com/ticket/22971

Here we split the header without checking if the split length is correct...

https://github.com/django/django/blob/1.8a1/django/http/multipartparser.py#L649

The `has_encoding` test should probably be...

{{{
if name.endswith('*') and p[i + 1:].count(""'"") == 2
}}}"	Bug	closed	HTTP handling	1.8alpha1	Normal	fixed		raulcumplido@…	Accepted	1	0	0	0	0	0
