X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/8a8e54f3f61721b40c60712c4c5c0cefd049502e..2afb0dd66332136f47d08f2ee4de292eb73c8779:/IkiWiki/Plugin/recentchanges.pm?ds=sidebyside diff --git a/IkiWiki/Plugin/recentchanges.pm b/IkiWiki/Plugin/recentchanges.pm index 4c1863255..2b2f43b7a 100644 --- a/IkiWiki/Plugin/recentchanges.pm +++ b/IkiWiki/Plugin/recentchanges.pm @@ -102,7 +102,7 @@ sub sessioncgi ($$) { IkiWiki::decode_form_utf8($form); if ($form->submitted eq 'Revert' && $form->validate) { - IkiWiki::checksessionexpiry($q, $session, $q->param('sid')); + IkiWiki::checksessionexpiry($q, $session); my $message=sprintf(gettext("This reverts commit %s"), $rev); if (defined $form->field('revertmessage') && length $form->field('revertmessage')) { @@ -181,7 +181,7 @@ sub store ($$$) { else { $_->{link} = pagetitle($_->{page}); } - if (defined $_->{diffurl}) { + if (defined $_->{diffurl} && length($_->{diffurl})) { $has_diffurl=1; }