From a2369928b52ddcbadb5709cfa5df0b502d861090 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 10 Mar 2003 19:20:18 +0000 Subject: specialsre, escapesre: In SF bug #663369, Matthew Woodcraft points out that backslashes must be escaped in character sets. --- Lib/email/Utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 @@ EMPTYSTRING = '' UEMPTYSTRING = u'' CRLF = '\r\n' -specialsre = re.compile(r'[][\()<>@,:;".]') -escapesre = re.compile(r'[][\()"]') +specialsre = re.compile(r'[][\\()<>@,:;".]') +escapesre = re.compile(r'[][\\()"]') -- cgit v0.12