From aa5f9310765606457dbcb847e56f55ec92e72fb1 Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Sat, 6 Sep 2008 12:57:35 -0300 Subject: [PATCH] Only handle comments when they are enabled If malicious users want to post comments when they are disabled, we shouldn't let them! Signed-off-by: Alberto Bertogli --- blitiri.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blitiri.cgi b/blitiri.cgi index 60c86ea..a0334e4 100755 --- a/blitiri.cgi +++ b/blitiri.cgi @@ -1218,7 +1218,7 @@ def handle_cgi(): articles = db.get_articles() articles.sort(cmp = Article.title_cmp) render_artlist(articles, db) - elif comment: + elif comment and enable_comments: form_data = CommentFormData(author.strip().replace('\n', ' '), link.strip().replace('\n', ' '), captcha, body.replace('\r', '')) -- 2.43.0