Skip to content

Commit 80ac876

Browse files
author
Richard Jones
committed
fix mangling of "_" in mail Subject class name [SF#1413852]
1 parent fa6ab6b commit 80ac876

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Fixed:
6161
- fix permission checks in cgi interface (sf bug 1289557)
6262
- fix permission check on RetireAction (sf bug 1407342)
6363
- timezone now applied to date for pretty-format (sf bug 1406861)
64+
- fix mangling of "_" in mail Subject class name (sf bug 1413852)
6465

6566

6667
2005-10-07 0.8.5

roundup/rfc2822.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def encode_header(header, charset='utf-8'):
141141
if c == ' ':
142142
quoted += '_'
143143
# These characters can be included verbatim
144-
elif hqre.match(c):
144+
elif hqre.match(c) and c != '_':
145145
quoted += c
146146
# Otherwise, replace with hex value like =E2
147147
else:

0 commit comments

Comments
 (0)