From: Guido van Rossum Date: Mon, 15 Oct 2001 18:44:26 +0000 (+0000) Subject: Patch 471400: escape single-dot lines; by Jason Hildebrand. X-Git-Tag: v2.2.1c1~1279 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1346e83eb037ffc03c72d2fdc6da395acef9bc1b;p=thirdparty%2FPython%2Fcpython.git Patch 471400: escape single-dot lines; by Jason Hildebrand. RFC 2049 recommends never outputting a line consisting of a single dot. --- diff --git a/Lib/quopri.py b/Lib/quopri.py index 6d7cdd613fd7..edee3d991604 100755 --- a/Lib/quopri.py +++ b/Lib/quopri.py @@ -61,6 +61,8 @@ def encode(input, output, quotetabs, header = 0): # that trailing character encoded. if s and s[-1:] in ' \t': output.write(s[:-1] + quote(s[-1]) + lineEnd) + elif s == '.': + output.write(quote(s) + lineEnd) else: output.write(s + lineEnd) diff --git a/Misc/ACKS b/Misc/ACKS index 6569766ea999..f09e77c84c64 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -180,6 +180,7 @@ Gary Herron Bernhard Herzog Magnus L. Hetland Kevan Heydon +Jason Hildebrand Konrad Hinsen David Hobley Tim Hochberg