summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/comments.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index 14e785c8f..833bedf25 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -469,6 +469,7 @@ sub sessioncgi ($$) {
if ($form->submitted eq POST_COMMENT && $form->validate) {
IkiWiki::checksessionexpiry($cgi, $session);
+ $postcomment=1;
IkiWiki::check_content(content => $form->field('editcontent'),
subject => $form->field('subject'),
$config{comments_allowauthor} ? (
@@ -476,7 +477,9 @@ sub sessioncgi ($$) {
url => $form->field('url'),
) : (),
page => $location,
- cgi => $cgi, session => $session);
+ cgi => $cgi, session => $session
+ );
+ $postcomment=0;
my $file = "$location._comment";