make postcomment() pagespecs work while in checkcontent

master
Joey Hess 2009-01-16 21:58:05 -05:00
parent ae20879e84
commit 16c56af605
1 changed files with 4 additions and 1 deletions

View File

@ -469,6 +469,7 @@ sub sessioncgi ($$) {
if ($form->submitted eq POST_COMMENT && $form->validate) { if ($form->submitted eq POST_COMMENT && $form->validate) {
IkiWiki::checksessionexpiry($cgi, $session); IkiWiki::checksessionexpiry($cgi, $session);
$postcomment=1;
IkiWiki::check_content(content => $form->field('editcontent'), IkiWiki::check_content(content => $form->field('editcontent'),
subject => $form->field('subject'), subject => $form->field('subject'),
$config{comments_allowauthor} ? ( $config{comments_allowauthor} ? (
@ -476,7 +477,9 @@ sub sessioncgi ($$) {
url => $form->field('url'), url => $form->field('url'),
) : (), ) : (),
page => $location, page => $location,
cgi => $cgi, session => $session); cgi => $cgi, session => $session
);
$postcomment=0;
my $file = "$location._comment"; my $file = "$location._comment";