summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-11-10 07:51:14 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-11-10 07:51:14 +0000
commit60aca5e0fe64834a7e51f5a58ad82c08ee4c55ff (patch)
tree9cacdb48b0680a959d7c9b6902e00b6808080833 /IkiWiki
parent96eb9bb3fa1d805df967f44d13876f57b8ea121d (diff)
fixes
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/CGI.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index 59e9ce161..ce4b6ada1 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -582,7 +582,6 @@ sub cgi_editpage ($$) { #{{{
$form->title("editing ".pagetitle($page));
}
- print "Content-Type: text/html\n\n";
print $form->render(submit => \@buttons);
}
else {
@@ -712,7 +711,7 @@ sub cgi () { #{{{
}
}
- if (userinfo_get($session->param("name"), "banned")) {
+ if (defined $session->param("name") && userinfo_get($session->param("name"), "banned")) {
print $q->header(-status => "403 Forbidden");
$session->delete();
print "You are banned.";