git » wikiri » commit 454bc92

Just in case, handle headers split by '\r\n'.

author Alberto Bertogli
2008-01-06 00:48:41 UTC
committer Alberto Bertogli
2008-01-06 00:50:52 UTC
parent 352a918005f6e483599ce9a713af565679f43363

Just in case, handle headers split by '\r\n'.

Signed-off-by: Alberto Bertogli <albertito@gmail.com>

wikiri.cgi +1 -1

diff --git a/wikiri.cgi b/wikiri.cgi
index a929a74..75dea73 100755
--- a/wikiri.cgi
+++ b/wikiri.cgi
@@ -607,7 +607,7 @@ class Article (object):
 					self.attrs[name] = value.strip()
 					hdr_lines += 1
 
-				elif l == '\n':
+				elif l == '\n' or l == '\r\n':
 					# end of header
 					break