$page));
}
- IkiWiki::checksessionexpiry($session, $cgi->param('sid'));
IkiWiki::check_canedit($page . "[postcomment]", $cgi, $session);
my ($authorurl, $author) = linkuser(getcgiuser($session));
if ($form->submitted eq POST_COMMENT && $form->validate) {
my $file = "$location._comment";
+ IkiWiki::checksessionexpiry($session, $cgi->param('sid'));
+
# FIXME: could probably do some sort of graceful retry
# on error? Would require significant unwinding though
writefile($file, $config{srcdir}, $content);