Index: newpage.cgi =================================================================== --- newpage.cgi (revision 751) +++ newpage.cgi (working copy) @@ -29,8 +29,6 @@ show_form(); } -exit 0; - sub show_form { print OpenGuides::Template->output( wiki => $wiki, config => $config, @@ -56,7 +54,7 @@ deter_robots => 1, message => "Please enter a page name!", return_url => "newpage.cgi" } ); - exit 0; + return 0; } # Ensure pagename valid. @@ -81,13 +79,13 @@ return_url => "newpage.cgi?pagename=" . uri_escape($pagename) } ); - exit 0; + return 0; } # Hurrah, we're OK. my $node_param = $wiki->formatter->node_name_to_node_param($pagename); print "Location: ".$config->script_url.$config->script_name."?action=edit;id=$node_param\n\n"; - exit 0; + return 0; } Index: preferences.cgi =================================================================== --- preferences.cgi (revision 751) +++ preferences.cgi (working copy) @@ -21,8 +21,6 @@ show_form(); } -exit 0; - sub set_preferences { my $username = $cgi->param("username") || ""; my $gc_link = $cgi->param("include_geocache_link") || 0; Index: lib/OpenGuides.pm =================================================================== --- lib/OpenGuides.pm (revision 751) +++ lib/OpenGuides.pm (working copy) @@ -178,7 +178,7 @@ if ($args{format} && $args{format} eq 'raw') { print "Content-Type: text/plain\n\n"; print $raw; - exit 0; + return 0; } my %metadata_vars = OpenGuides::Template->extract_metadata_vars( @@ -224,7 +224,7 @@ my $output = $self->redirect_to_node($redirect, $id); return $output if $return_output; print $output; - exit 0; + return 0; } }