Bug 448812 - "Stray "Content-type: text/html" on tinderbox doadmin.cgi" [p=cls r=reed]

git-svn-id: svn://10.0.0.236/trunk@254230 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
reed%reedloden.com 2008-09-16 09:15:46 +00:00
parent a864434cf5
commit 9468b35fe1

View File

@ -38,8 +38,6 @@ $|=1;
&tb_check_password(\%form, \%cookie_jar);
print "Content-type: text/html\n\n<HTML>\n";
my $command = $form{'command'};
my $tree= $form{'tree'};
@ -49,6 +47,8 @@ if ($command eq 'create_tree') {
$tree = &require_only_one_tree($tree);
}
print "Content-type: text/html\n\n<HTML>\n";
if( $command eq 'create_tree' || $command eq 'edit_tree' ){
&create_tree;
}
@ -71,6 +71,8 @@ elsif( $command eq 'admin_builds' ){
exit(1);
}
print "</HTML>\n";
# Recreate static pages after administrative command
my %static_form = ();
$static_form{'tree'} = $form{'tree'};