mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #7747: Altered EmailMessage such that messages with long subject lines don't use tabs in their continutation sequence. Tabs in subjects cause problems with Outlook and Thunderbird. Thanks to Mark Allison <mark.allison@maplecroft.com> for the report and fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8483 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -86,6 +86,9 @@ def forbid_multi_line_headers(name, val):
|
||||
val = ', '.join(result)
|
||||
else:
|
||||
val = Header(val, settings.DEFAULT_CHARSET)
|
||||
else:
|
||||
if name.lower() == 'subject':
|
||||
val = Header(val)
|
||||
return name, val
|
||||
|
||||
class SafeMIMEText(MIMEText):
|
||||
|
||||
Reference in New Issue
Block a user