mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:29 +01:00
replace previous logout code with cd=1 "You have been successfully logged out"
This commit is contained in:
parent
a3eddc1ce4
commit
31f92ecdd7
@ -26,10 +26,14 @@ $GLOBALS['kp3'] = egw_session::get_request('kp3');
|
||||
|
||||
$verified = $GLOBALS['egw']->session->verify();
|
||||
|
||||
if(!$redirectTarget = $GLOBALS['egw']->session->appsession('referer', 'login'))
|
||||
if(!($redirectTarget = $GLOBALS['egw']->session->appsession('referer', 'login')))
|
||||
{
|
||||
$redirectTarget = $GLOBALS['egw_info']['server']['webserver_url'].'/login.php?cd=1&domain='.$GLOBALS['egw_info']['user']['domain'];
|
||||
}
|
||||
elseif(strpos($redirectTarget, '[?&]cd=') !== false)
|
||||
{
|
||||
$redirectTarget = preg_replace('/([?&])cd=[^&]+/', '$1cd=1', $redirectTarget);
|
||||
}
|
||||
|
||||
if($verified)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user