summaryrefslogtreecommitdiffstats
path: root/Lib/cgi.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-09-05 19:03:36 (GMT)
committerGuido van Rossum <guido@python.org>1996-09-05 19:03:36 (GMT)
commite5e46e0d298be92faf19b069846cb8d039b23884 (patch)
tree293c9a7a10a3b1df637ae957ac4e1ff970dbbb51 /Lib/cgi.py
parent2caac73aa69120580bc4dc1d5817b9c2c3d05abf (diff)
downloadcpython-e5e46e0d298be92faf19b069846cb8d039b23884.zip
cpython-e5e46e0d298be92faf19b069846cb8d039b23884.tar.gz
cpython-e5e46e0d298be92faf19b069846cb8d039b23884.tar.bz2
Fixed embarrassing logic bug in read_lines_to_outerboundary().
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-xLib/cgi.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index 3fb8737..1984a1d 100755
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -399,7 +399,7 @@ backwards compatible and debugging classes and functions?
# " <== Emacs font-lock de-bogo-kludgificocity
-__version__ = "2.0b3"
+__version__ = "2.0b4"
# Imports
@@ -891,6 +891,7 @@ class FieldStorage:
if strippedline == last:
self.done = 1
break
+ odelim = delim
if line[-2:] == "\r\n":
delim = "\r\n"
line = line[:-2]
@@ -899,7 +900,7 @@ class FieldStorage:
line = line[:-1]
else:
delim = ""
- self.file.write(delim + line)
+ self.file.write(odelim + line)
def skip_lines(self):
"""Internal: skip lines until outer boundary if defined."""