From: joey Date: Fri, 10 Nov 2006 07:51:14 +0000 (+0000) Subject: fixes X-Git-Tag: 1.33~12 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/60aca5e0fe64834a7e51f5a58ad82c08ee4c55ff?ds=inline fixes --- 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.";