diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-01-31 18:52:38 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-01-31 18:52:38 -0500 |
commit | 3be69a0fe49f947a9f5ef26ce0c5920c6295902d (patch) | |
tree | 9428820d45f68a6fb8be6f77ea0ee7e17c816f59 /IkiWiki/CGI.pm | |
parent | 0fe92602496210294e71c28ba459f06277a8c2ac (diff) | |
parent | c886bea32084a920f3ba26b3f96327681f5db917 (diff) | |
download | ikiwiki-3be69a0fe49f947a9f5ef26ce0c5920c6295902d.tar ikiwiki-3be69a0fe49f947a9f5ef26ce0c5920c6295902d.tar.gz |
Merge commit 'smcv/goto'
Diffstat (limited to 'IkiWiki/CGI.pm')
-rw-r--r-- | IkiWiki/CGI.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 3fadc462e..c91914564 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -239,6 +239,9 @@ sub check_banned ($$) { print $q->header(-status => "403 Forbidden"); $session->delete(); print gettext("You are banned."); + # Internet Explorer won't show custom 404 responses + # unless they're >= 512 bytes + print " " x 512; cgi_savesession($session); exit; } @@ -317,7 +320,7 @@ sub cgi (;$$) { error("\"do\" parameter missing"); } } - + # Need to lock the wiki before getting a session. lockwiki(); loadindex(); |