mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +00:00
[3.1.x] Fixed #31784 -- Fixed crash when sending emails on Python 3.6.11+, 3.7.8+, and 3.8.4+.
Fixed sending emails crash on email addresses with display names longer
then 75 chars on Python 3.6.11+, 3.7.8+, and 3.8.4+.
Wrapped display names were passed to email.headerregistry.Address()
what caused raising an exception because address parts cannot contain
CR or LF.
See https://bugs.python.org/issue39073
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Backport of 96a3ea39ef
from master
This commit is contained in:
parent
474f65406f
commit
bfe404deb9
4 changed files with 63 additions and 11 deletions
|
@ -4,10 +4,13 @@ Django 2.2.15 release notes
|
|||
|
||||
*Expected August 3, 2020*
|
||||
|
||||
Django 2.2.15 fixes a bug in 2.2.14.
|
||||
Django 2.2.15 fixes two bugs in 2.2.14.
|
||||
|
||||
Bugfixes
|
||||
========
|
||||
|
||||
* Allowed setting the ``SameSite`` cookie flag in
|
||||
:meth:`.HttpResponse.delete_cookie` (:ticket:`31790`).
|
||||
|
||||
* Fixed crash when sending emails to addresses with display names longer than
|
||||
75 chars on Python 3.6.11+, 3.7.8+, and 3.8.4+ (:ticket:`31784`).
|
||||
|
|
|
@ -11,3 +11,6 @@ Bugfixes
|
|||
|
||||
* Allowed setting the ``SameSite`` cookie flag in
|
||||
:meth:`.HttpResponse.delete_cookie` (:ticket:`31790`).
|
||||
|
||||
* Fixed crash when sending emails to addresses with display names longer than
|
||||
75 chars on Python 3.6.11+, 3.7.8+, and 3.8.4+ (:ticket:`31784`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue