]> git.llucax.com Git - software/blitiri.git/commitdiff
Remove \r (use unix style end of lines) from comments body
authorLeandro Lucarella <luca@llucax.com.ar>
Tue, 12 Aug 2008 22:03:32 +0000 (19:03 -0300)
committerLeandro Lucarella <luca@llucax.com.ar>
Mon, 25 Aug 2008 17:42:27 +0000 (14:42 -0300)
blitiri.cgi

index e69789f900192b66018416aa2d395a6503d3c6f1..c54480ce57c730998cad5843cfbef218706526dd 100755 (executable)
@@ -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