From 60aca5e0fe64834a7e51f5a58ad82c08ee4c55ff Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 10 Nov 2006 07:51:14 +0000 Subject: fixes --- IkiWiki/CGI.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'IkiWiki/CGI.pm') 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."; -- cgit v1.2.3