From: Simon McVittie Date: Sat, 31 Jan 2009 14:48:44 +0000 (+0000) Subject: CGI: if the "do" parameter is goto, recentchanges_link or commenter, redirect to a page X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/18f4aeffb1841f8b455a5e31811695102262a06a CGI: if the "do" parameter is goto, recentchanges_link or commenter, redirect to a page This can replace equivalent functionality in comments and recentchanges. --- diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index a6b485edb..949390e68 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -358,7 +358,12 @@ sub cgi (;$$) { error("\"do\" parameter missing"); } } - + + if ($do eq 'goto' || $do eq 'recentchanges_link' || + $do eq 'commenter') { + cgi_goto($q); + } + # Need to lock the wiki before getting a session. lockwiki(); loadindex();