aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2009-01-31 14:48:44 +0000
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2009-01-31 14:48:44 +0000
commit18f4aeffb1841f8b455a5e31811695102262a06a (patch)
treef96bf63c2864ea49e7580d8b08f4970504a4fd83 /IkiWiki
parentc2dafcb4e5e8c9f654c0ad5719607366cf84b75a (diff)
downloadikiwiki-18f4aeffb1841f8b455a5e31811695102262a06a.tar
ikiwiki-18f4aeffb1841f8b455a5e31811695102262a06a.tar.gz
CGI: if the "do" parameter is goto, recentchanges_link or commenter, redirect to a page
This can replace equivalent functionality in comments and recentchanges.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/CGI.pm7
1 files changed, 6 insertions, 1 deletions
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();