git » blitiri » commit 6fdc0e1

Remove \r (use unix style end of lines) from comments body

author Leandro Lucarella
2008-08-12 22:03:32 UTC
committer Leandro Lucarella
2008-08-25 17:42:27 UTC
parent 464df08f44fddca976f584e5daaf538adc4f443d

Remove \r (use unix style end of lines) from comments body

blitiri.cgi +2 -1

diff --git a/blitiri.cgi b/blitiri.cgi
index e69789f..c54480c 100755
--- a/blitiri.cgi
+++ b/blitiri.cgi
@@ -1109,7 +1109,8 @@ def handle_cgi():
 		render_artlist(articles, db)
 	elif comment:
 		form_data = CommentFormData(author.strip().replace('\n', ' '),
-				link.strip().replace('\n', ' '), captcha, body)
+				link.strip().replace('\n', ' '), captcha,
+				body.replace('\r', ''))
 		article = db.get_article(uuid)
 		captcha = Captcha(article)
 		redirect = False