forked frompython/cpython
- Notifications
You must be signed in to change notification settings - Fork3
Commit94caf67
[3.10]pythongh-121284: Fix email address header folding with parsed encoded-word (pythonGH-122754)
Email generators using email.policy.default may convert an RFC 2047encoded-word to unencoded form during header refolding. In a structuredheader, this could allow 'specials' chars outside a quoted-string,leading to invalid address headers and enabling spoofing. This changeensures a parsed encoded-word that contains specials is kept as anencoded-word while the header is refolded.[Better fix from@bitdancer.]---------(cherry picked from commit295b53d)Co-authored-by: Mike Edmunds <medmunds@gmail.com>Co-authored-by: R David Murray <rdmurray@bitdance.com>Co-authored-by: Petr Viktorin <encukou@gmail.com>1 parent2d98d49 commit94caf67
File tree
0 file changed
+0
-0
lines changed0 file changed
+0
-0
lines changed0 commit comments
Comments
(0)