CGI: if the "do" parameter is goto, recentchanges_link or commenter, redirect to a page

This can replace equivalent functionality in comments and recentchanges.
master
Simon McVittie 2009-01-31 14:48:44 +00:00
parent c2dafcb4e5
commit 18f4aeffb1
1 changed files with 6 additions and 1 deletions

View File

@ -359,6 +359,11 @@ sub cgi (;$$) {
}
}
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();