Skip to content

Make parseaddr and getaddresses return Unicode when given Unicode input#81

Merged
icanhasmath merged 1 commit into2.7.18.xfrom
CS-2018-cve-2023-27043-python-2-7-fix-2
Mar 18, 2026
Merged

Make parseaddr and getaddresses return Unicode when given Unicode input#81
icanhasmath merged 1 commit into2.7.18.xfrom
CS-2018-cve-2023-27043-python-2-7-fix-2

Conversation

@ezequielp-activestate
Copy link

@ezequielp-activestate ezequielp-activestate commented Mar 18, 2026

Python 2.7.18.13 (default, Mar 13 2026, 23:52:31) 
[GCC 11.2.1 20220127 (Red Hat 11.2.1-9)] on linux2
Binary build provided by ActiveState http://www.ActiveState.com.
Type "help", "copyright", "credits" or "license" for more information.
>>> from email.utils import getaddresses, parseaddr
>>> parseaddr('user1@example.com')
('', 'user1@example.com')
>>> parseaddr(u'user1@example.com')
('', u'user1@example.com')
>>> getaddresses(['user1@example.com', 'John Doe <user2@example.com>'])
[('', 'user1@example.com'), ('John Doe', 'user2@example.com')]
>>> getaddresses([u'user1@example.com', u'John Doe <user2@example.com>'])
[('', u'user1@example.com'), (u'John Doe', u'user2@example.com')]

@ezequielp-activestate ezequielp-activestate force-pushed the CS-2018-cve-2023-27043-python-2-7-fix-2 branch 2 times, most recently from 8beaeeb to d47bf9c Compare March 18, 2026 15:38
@ezequielp-activestate ezequielp-activestate force-pushed the CS-2018-cve-2023-27043-python-2-7-fix-2 branch from d47bf9c to 671f474 Compare March 18, 2026 15:40
Copy link

@icanhasmath icanhasmath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@icanhasmath icanhasmath merged commit 3df688e into 2.7.18.x Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants