]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/comments.pm
checksessionexpiry: rework
[git.ikiwiki.info.git] / IkiWiki / Plugin / comments.pm
index 1eb256da9bc5ec3e198025fa81c3ffe3b3c65dfb..b8748a1d65e188abefee86cde10110356c941b5a 100644 (file)
@@ -468,7 +468,7 @@ sub sessioncgi ($$) { #{{{
        if ($form->submitted eq POST_COMMENT && $form->validate) {
                my $file = "$location._comment";
 
-               IkiWiki::checksessionexpiry($session, $cgi->param('sid'));
+               IkiWiki::checksessionexpiry($cgi, $session);
 
                # FIXME: could probably do some sort of graceful retry
                # on error? Would require significant unwinding though