diff --git a/mozilla/webtools/tinderbox/doadmin.cgi b/mozilla/webtools/tinderbox/doadmin.cgi index c028741d3b1..8142af39d6c 100755 --- a/mozilla/webtools/tinderbox/doadmin.cgi +++ b/mozilla/webtools/tinderbox/doadmin.cgi @@ -38,8 +38,6 @@ $|=1; &tb_check_password(\%form, \%cookie_jar); -print "Content-type: text/html\n\n\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\n"; + if( $command eq 'create_tree' || $command eq 'edit_tree' ){ &create_tree; } @@ -71,6 +71,8 @@ elsif( $command eq 'admin_builds' ){ exit(1); } +print "\n"; + # Recreate static pages after administrative command my %static_form = (); $static_form{'tree'} = $form{'tree'};