commit | a2369928b52ddcbadb5709cfa5df0b502d861090 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Mon Mar 10 19:20:18 2003 +0000 |
committer | Barry Warsaw <barry@python.org> | Mon Mar 10 19:20:18 2003 +0000 |
tree | b115a142718e2ce045468fd09cfbc8079127be77 | |
parent | a2e64702ca3e5d04c1b65c11bb9fdda32720809a [diff] [blame] |
specialsre, escapesre: In SF bug #663369, Matthew Woodcraft points out that backslashes must be escaped in character sets.
diff --git a/Lib/email/Utils.py b/Lib/email/Utils.py index 49232f7..2b8b94f 100644 --- a/Lib/email/Utils.py +++ b/Lib/email/Utils.py
@@ -54,8 +54,8 @@ UEMPTYSTRING = u'' CRLF = '\r\n' -specialsre = re.compile(r'[][\()<>@,:;".]') -escapesre = re.compile(r'[][\()"]') +specialsre = re.compile(r'[][\\()<>@,:;".]') +escapesre = re.compile(r'[][\\()"]')