fixes
[ikiwiki.git] / IkiWiki / CGI.pm
index 59e9ce161b022cff7be26350e251b16d7f5a5da6..ce4b6ada18ebd486a4ed12c2ae9f2e0b55097fb4 100644 (file)
@@ -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.";