Commit 93e7c1a
committed
gh-XXXXX: Fix email.utils.collapse_rfc2231_value crash on non-3-tuples
Passing a tuple of length != 3 fell through to unquote(value) which
calls .startswith() on the tuple, raising AttributeError. Handle
non-3-tuples explicitly before calling unquote.1 parent 5944a53 commit 93e7c1a
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| 452 | + | |
| 453 | + | |
452 | 454 | | |
453 | 455 | | |
454 | 456 | | |
| |||
0 commit comments