mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed login query params deletion (now it does not delete)
This commit is contained in:
parent
14467eb3ac
commit
8fc8c25548
@ -555,12 +555,15 @@ if (! isset ($config['id_user'])) {
|
|||||||
exit ("</html>");
|
exit ("</html>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($home_page != 'Visual console'){
|
// Form the url
|
||||||
header("Location: ".$config['homeurl']."index.php?sec=".$_GET["sec"]."&sec2=".$_GET["sec2"]);
|
$query_params_redirect = $_GET;
|
||||||
|
// Visual console do not want sec2
|
||||||
|
if($home_page == 'Visual console') unset($query_params_redirect["sec2"]);
|
||||||
|
$redirect_url = '?1=1';
|
||||||
|
foreach ($query_params_redirect as $key => $value) {
|
||||||
|
$redirect_url .= '&'.safe_url_extraclean($key).'='.safe_url_extraclean($value);
|
||||||
}
|
}
|
||||||
else{
|
header("Location: ".$config['homeurl']."index.php".$redirect_url);
|
||||||
header("Location: ".$config['homeurl']."index.php?sec=".$_GET["sec"]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Hash login process
|
// Hash login process
|
||||||
elseif (isset ($_GET["loginhash"])) {
|
elseif (isset ($_GET["loginhash"])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user