Merge branch 'exit-after-location-header-fix' into 'develop'

Added an exit after every declared Location header

See merge request artica/pandorafms!1988
This commit is contained in:
vgilc 2018-11-30 12:51:59 +01:00
commit b916bdbe3c
1 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,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")) {
@ -568,6 +569,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"])) {