Merge pull request #322 from WebsiteDeveloper/1585
Correctly redirect when admin hits the timeout and is currently in a customer session, fixes #1585
This commit is contained in:
@@ -226,7 +226,11 @@ if ($action == 'login') {
|
|||||||
redirectTo('admin_updates.php', array('s' => $s));
|
redirectTo('admin_updates.php', array('s' => $s));
|
||||||
} else {
|
} else {
|
||||||
if (isset($_POST['script']) && $_POST['script'] != "") {
|
if (isset($_POST['script']) && $_POST['script'] != "") {
|
||||||
|
if (preg_match("/customer\_/", $_POST['script']) === 1) {
|
||||||
|
redirectTo('admin_customers.php', array("page" => "customers"));
|
||||||
|
} else {
|
||||||
redirectTo($_POST['script'], $qryparams);
|
redirectTo($_POST['script'], $qryparams);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
redirectTo('admin_index.php', $qryparams);
|
redirectTo('admin_index.php', $qryparams);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user