diff options
author | Dong-hee Na <donghee.na92@gmail.com> | 2018-07-28 12:55:11 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2018-07-28 12:55:11 (GMT) |
commit | 8fe9eed937cb69b5e26ac6e36a90b5360eb11277 (patch) | |
tree | e3f74736ae5bd06852e53e1e6a1457c435261285 /Lib/email | |
parent | 1d2dafa249c7fb34f3d24e7a77d1bea02907d92b (diff) | |
download | cpython-8fe9eed937cb69b5e26ac6e36a90b5360eb11277.zip cpython-8fe9eed937cb69b5e26ac6e36a90b5360eb11277.tar.gz cpython-8fe9eed937cb69b5e26ac6e36a90b5360eb11277.tar.bz2 |
bpo-33476: Fix _header_value_parser when address group is missing final ';' (GH-7484)
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/_header_value_parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/_header_value_parser.py b/Lib/email/_header_value_parser.py index d8becee..e805a75 100644 --- a/Lib/email/_header_value_parser.py +++ b/Lib/email/_header_value_parser.py @@ -1875,7 +1875,7 @@ def get_group(value): if not value: group.defects.append(errors.InvalidHeaderDefect( "end of header in group")) - if value[0] != ';': + elif value[0] != ';': raise errors.HeaderParseError( "expected ';' at end of group but found {}".format(value)) group.append(ValueTerminal(';', 'group-terminator')) |