Staging
v0.5.1
https://github.com/python/cpython
Revision 13a19139b5e76175bc95294d54afc9425e4f36c9 authored by Miss Islington (bot) on 09 August 2019, 15:22:19 UTC, committed by Ned Deily on 09 August 2019, 15:22:19 UTC
Before:

        >>> email.message_from_string('From: a@malicious.org@important.com', policy=email.policy.default)['from'].addresses
        (Address(display_name='', username='a', domain='malicious.org'),)

        >>> parseaddr('a@malicious.org@important.com')
        ('', 'a@malicious.org')

    After:

        >>> email.message_from_string('From: a@malicious.org@important.com', policy=email.policy.default)['from'].addresses
        (Address(display_name='', username='', domain=''),)

        >>> parseaddr('a@malicious.org@important.com')
        ('', 'a@')

https://bugs.python.org/issue34155
(cherry picked from commit 8cb65d1381b027f0b09ee36bfed7f35bb4dec9a9)

Co-authored-by: jpic <jpic@users.noreply.github.com>
1 parent 1789bbd
History
Tip revision: 13a19139b5e76175bc95294d54afc9425e4f36c9 authored by Miss Islington (bot) on 09 August 2019, 15:22:19 UTC
bpo-34155: Dont parse domains containing @ (GH-13079) (GH-14826)
Tip revision: 13a1913
File Mode Size
package
Arithmetic.py -rw-r--r-- 13.2 KB
Calls.py -rw-r--r-- 9.0 KB
CommandLine.py -rw-r--r-- 16.5 KB
Constructs.py -rw-r--r-- 12.9 KB
Dict.py -rw-r--r-- 9.0 KB
Exceptions.py -rw-r--r-- 13.1 KB
Imports.py -rw-r--r-- 2.9 KB
Instances.py -rw-r--r-- 1.4 KB
LICENSE -rw-r--r-- 1.1 KB
Lists.py -rw-r--r-- 6.3 KB
Lookups.py -rw-r--r-- 14.9 KB
NewInstances.py -rw-r--r-- 1.5 KB
Numbers.py -rw-r--r-- 15.8 KB
README -rw-r--r-- 14.0 KB
Setup.py -rwxr-xr-x 961 bytes
Strings.py -rw-r--r-- 10.7 KB
Tuples.py -rw-r--r-- 7.8 KB
Unicode.py -rw-r--r-- 10.8 KB
With.py -rw-r--r-- 4.0 KB
clockres.py -rwxr-xr-x 1.2 KB
pybench.py -rwxr-xr-x 31.9 KB
systimes.py -rwxr-xr-x 6.5 KB

README

back to top