From 18f4aeffb1841f8b455a5e31811695102262a06a Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sat, 31 Jan 2009 14:48:44 +0000 Subject: [PATCH] CGI: if the "do" parameter is goto, recentchanges_link or commenter, redirect to a page This can replace equivalent functionality in comments and recentchanges. --- IkiWiki/CGI.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); -- 2.26.2