aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/CGI.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-01-31 18:52:38 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-01-31 18:52:38 -0500
commit3be69a0fe49f947a9f5ef26ce0c5920c6295902d (patch)
tree9428820d45f68a6fb8be6f77ea0ee7e17c816f59 /IkiWiki/CGI.pm
parent0fe92602496210294e71c28ba459f06277a8c2ac (diff)
parentc886bea32084a920f3ba26b3f96327681f5db917 (diff)
downloadikiwiki-3be69a0fe49f947a9f5ef26ce0c5920c6295902d.tar
ikiwiki-3be69a0fe49f947a9f5ef26ce0c5920c6295902d.tar.gz
Merge commit 'smcv/goto'
Diffstat (limited to 'IkiWiki/CGI.pm')
-rw-r--r--IkiWiki/CGI.pm5
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();