#32008: sanitize_address() can add newlines in a header that
django.core.mail.EmailMessage will refuse.
-------------------------------------+-------------------------------------
     Reporter:  Pierre-Elliott       |                    Owner:  nobody
  Bécue                              |
         Type:  Bug                  |                   Status:  closed
    Component:  Core (Mail)          |                  Version:  2.2
     Severity:  Normal               |               Resolution:  invalid
     Keywords:  mail                 |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by felixxm):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 `forbid_multi_line_headers()` calls `sanitize_address()` so you don't need
 to do this explicitly. Moreover `sanitize_address()` is a part of internal
 and undocumented API, it's not intended for preparing values for
 `EmailMessage()`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32008#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/061.0fdb31e19fe1978d4e79bdb9c82d00b1%40djangoproject.com.

Reply via email to