diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-11-10 07:51:14 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-11-10 07:51:14 +0000 |
commit | 60aca5e0fe64834a7e51f5a58ad82c08ee4c55ff (patch) | |
tree | 9cacdb48b0680a959d7c9b6902e00b6808080833 | |
parent | 96eb9bb3fa1d805df967f44d13876f57b8ea121d (diff) |
fixes
-rw-r--r-- | IkiWiki/CGI.pm | 3 |
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."; |