From 3587f6d11918b359857018c31935c1d6c25b0c37 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Wed, 20 Mar 2013 21:39:07 +0100 Subject: [PATCH] add parameter isRelative=true to call of redirectTo() and it magically fixes #1177 Signed-off-by: Michael Kaufmann (d00p) --- admin_customers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin_customers.php b/admin_customers.php index 6fd0ee9d..73102ceb 100644 --- a/admin_customers.php +++ b/admin_customers.php @@ -137,7 +137,7 @@ if($page == 'customers' $s = md5(uniqid(microtime(), 1)); $db->query("INSERT INTO `" . TABLE_PANEL_SESSIONS . "` (`hash`, `userid`, `ipaddress`, `useragent`, `lastactivity`, `language`, `adminsession`) VALUES ('" . $db->escape($s) . "', '" . (int)$id . "', '" . $db->escape($result['ipaddress']) . "', '" . $db->escape($result['useragent']) . "', '" . time() . "', '" . $db->escape($result['language']) . "', '0')"); $log->logAction(ADM_ACTION, LOG_INFO, "switched user and is now '" . $destination_user . "'"); - redirectTo('customer_index.php', Array('s' => $s)); + redirectTo('customer_index.php', Array('s' => $s), true); } else {