]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
fixes
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Fri, 10 Nov 2006 07:51:14 +0000 (07:51 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Fri, 10 Nov 2006 07:51:14 +0000 (07:51 +0000)
IkiWiki/CGI.pm

index 59e9ce161b022cff7be26350e251b16d7f5a5da6..ce4b6ada18ebd486a4ed12c2ae9f2e0b55097fb4 100644 (file)
@@ -582,7 +582,6 @@ sub cgi_editpage ($$) { #{{{
                        $form->title("editing ".pagetitle($page));
                }
                
                        $form->title("editing ".pagetitle($page));
                }
                
-               print "Content-Type: text/html\n\n";
                print $form->render(submit => \@buttons);
        }
        else {
                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.";
                print $q->header(-status => "403 Forbidden");
                $session->delete();
                print "You are banned.";