Commit d74e66b5 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4472 (Avoid explicit exiting if possible)

parent 3e7c9868
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -70,4 +70,4 @@ if ($location !== null) {
    echo json_encode(reverse_geocode(floatval(get_param_string('latitude')), floatval(get_param_string('longitude'))));
}

exit(); // So auto_append_file cannot run and corrupt our output
cms_safe_exit_flow();
+1 −1
Original line number Diff line number Diff line
@@ -64,4 +64,4 @@ if ($script != '') {
    }
}

exit(); // So auto_append_file cannot run and corrupt our output
cms_safe_exit_flow();
+3 −0
Original line number Diff line number Diff line
@@ -52,5 +52,8 @@ if (!is_file($FILE_BASE . '/sources/global.php')) {
}
require($FILE_BASE . '/sources/global.php');

global $BOOTSTRAPPING;
if (!$BOOTSTRAPPING) {
    require_code('notification_poller');
    notification_script();
} // else we intentionally terminated during global2.php and need to not continue
+1 −1
Original line number Diff line number Diff line
@@ -201,4 +201,4 @@ if (!is_null($lstring)) {
    }
}

exit(); // So auto_append_file cannot run and corrupt our output
cms_safe_exit_flow();
+15 −15
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ function username_check_script()
        $error->evaluate_echo();
    }

    exit(); // So auto_append_file cannot run and corrupt our output
    cms_safe_exit_flow();
}

/**
@@ -124,7 +124,7 @@ function username_exists_script()
        echo 'false';
    }

    exit(); // So auto_append_file cannot run and corrupt our output
    cms_safe_exit_flow();
}

/**
@@ -242,7 +242,7 @@ function namelike_script()

    echo '</result></request>';

    exit(); // So auto_append_file cannot run and corrupt our output
    cms_safe_exit_flow();
}

/**
@@ -283,7 +283,7 @@ function find_permissions_script()
        echo has_privilege_group($group_id, $privilege, $privilege_page) ? do_lang('YES') : do_lang('NO');
    }

    exit(); // So auto_append_file cannot run and corrupt our output
    cms_safe_exit_flow();
}

/**
@@ -313,7 +313,7 @@ function store_autosave()
        ));
    }

    exit(); // So auto_append_file cannot run and corrupt our output
    cms_safe_exit_flow();
}

/**
@@ -354,7 +354,7 @@ function retrieve_autosave()

    echo '</result></request>';

    exit(); // So auto_append_file cannot run and corrupt our output
    cms_safe_exit_flow();
}

/**
@@ -405,7 +405,7 @@ function fractional_edit_script()
    safe_ini_set('ocproducts.xss_detect', '0');
    echo $edited;

    exit(); // So auto_append_file cannot run and corrupt our output
    cms_safe_exit_flow();
}

/**
@@ -428,7 +428,7 @@ function change_detection_script()
    $result = $object->run($refresh_if_changed);
    echo $result ? '1' : '0';

    exit(); // So auto_append_file cannot run and corrupt our output
    cms_safe_exit_flow();
}

/**
@@ -461,7 +461,7 @@ function edit_ping_script()

    echo '1';

    exit(); // So auto_append_file cannot run and corrupt our output
    cms_safe_exit_flow();
}

/**
@@ -513,7 +513,7 @@ function ajax_tree_script()
    echo str_replace('</body>', '<br id="ended" /></body>', $val);
    echo($html_mask ? '</html>' : '</request>');

    exit(); // So auto_append_file cannot run and corrupt our output
    cms_safe_exit_flow();
}

/**
@@ -533,7 +533,7 @@ function confirm_session_script()
        echo $GLOBALS['FORUM_DRIVER']->get_username(get_member());
    }

    exit(); // So auto_append_file cannot run and corrupt our output
    cms_safe_exit_flow();
}

/**
@@ -570,7 +570,7 @@ function load_template_script()
        echo file_get_contents($x);
    }

    exit(); // So auto_append_file cannot run and corrupt our output
    cms_safe_exit_flow();
}

/**
@@ -591,7 +591,7 @@ function sheet_script()
        }
    }

    exit(); // So auto_append_file cannot run and corrupt our output
    cms_safe_exit_flow();
}

/**
@@ -612,7 +612,7 @@ function script_script()
        }
    }

    exit(); // So auto_append_file cannot run and corrupt our output
    cms_safe_exit_flow();
}

/**
@@ -651,5 +651,5 @@ function snippet_script()

    echo $out;

    exit(); // So auto_append_file cannot run and corrupt our output
    cms_safe_exit_flow();
}
Loading