]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/comments.pm
Revert "pagespec_match_list * optimisation"
[git.ikiwiki.info.git] / IkiWiki / Plugin / comments.pm
index 98f9f8b3de8ec224b0fa23a033b476e852a700a9..e618d1a90ade4f1a1286e856e1b7ea65cd1fc981 100644 (file)
@@ -317,6 +317,13 @@ sub editcomment ($$) {
                        force => 1);
        }
 
+       if (! defined $session->param('name')) {
+               # Make signinurl work and return here.
+               $form->tmpl_param(signinurl => IkiWiki::cgiurl(do => 'signin'));
+               $session->param(postsignin => $ENV{QUERY_STRING});
+               IkiWiki::cgi_savesession($session);
+       }
+
        # The untaint is OK (as in editpage) because we're about to pass
        # it to file_pruned anyway
        my $page = $form->field('page');