Added an exit after every Location header declared

This commit is contained in:
Alejandro Gallardo Escobar 2018-11-19 11:28:07 +01:00
parent 96a36615cc
commit 919e94e46a
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,7 @@ if (isset($config["error"])) {
// If metaconsole activated, redirect to it
if ($config['metaconsole'] == 1 && $config['enterprise_installed'] == 1) {
header ("Location: " . $config['homeurl'] . "enterprise/meta");
exit; //Always exit after sending location headers
}
if (file_exists (ENTERPRISE_DIR . "/include/functions_login.php")) {
@ -567,6 +568,7 @@ if (! isset ($config['id_user'])) {
$redirect_url .= '&'.safe_url_extraclean($key).'='.safe_url_extraclean($value);
}
header("Location: ".$config['homeurl']."index.php".$redirect_url);
exit; //Always exit after sending location headers
}
// Hash login process
elseif (isset ($_GET["loginhash"])) {