diff options
author | R. David Murray <rdmurray@bitdance.com> | 2010-04-13 20:57:40 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2010-04-13 20:57:40 (GMT) |
commit | 661303f27e10abdb16450d96d8f55ac9c337246a (patch) | |
tree | a216b2f3874e5312680dc3fd0f4d703bda505260 /Lib/email/message.py | |
parent | b6705ac59cb3d0f23c95bbf783a954ad653eee24 (diff) | |
download | cpython-661303f27e10abdb16450d96d8f55ac9c337246a.zip cpython-661303f27e10abdb16450d96d8f55ac9c337246a.tar.gz cpython-661303f27e10abdb16450d96d8f55ac9c337246a.tar.bz2 |
Issue #5277: Fix quote counting when parsing RFC 2231 encoded parameters.
Diffstat (limited to 'Lib/email/message.py')
-rw-r--r-- | Lib/email/message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/message.py b/Lib/email/message.py index 6adb3f6..993a1ac 100644 --- a/Lib/email/message.py +++ b/Lib/email/message.py @@ -62,7 +62,7 @@ def _parseparam(s): while s[:1] == ';': s = s[1:] end = s.find(';') - while end > 0 and s.count('"', 0, end) % 2: + while end > 0 and (s.count('"', 0, end) - s.count('\\"', 0, end)) % 2: end = s.find(';', end + 1) if end < 0: end = len(s) |