﻿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
1139	Bug in email.txt documentation example code	Simon Willison	Adrian Holovaty	"The header injection example code in http://code.djangoproject.com/browser/django/trunk/docs/email.txt only checxs for '\n' in the headers, but Django itself checks for '\r' instead. Suggestion: instead of throwing a ValueError in the SafeMIMEText class throw a ""BadHeaderError"" (or similarly named) that is a subclass of ValueError. The example code can then try to send the email and show an error if it catches that exception."	defect	closed	Core (Other)		normal	fixed			Unreviewed	0	0	0	0	0	0
