mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
fix expired session gives client-side parse-error under PHP 8
This commit is contained in:
parent
81e918d010
commit
7480e7e75f
4
json.php
4
json.php
@ -32,6 +32,8 @@ function login_redirect(&$anon_account)
|
|||||||
$response->apply('framework.callOnLogout');
|
$response->apply('framework.callOnLogout');
|
||||||
$response->redirect($GLOBALS['egw_info']['server']['webserver_url'].'/login.php?cd=10', true);
|
$response->redirect($GLOBALS['egw_info']['server']['webserver_url'].'/login.php?cd=10', true);
|
||||||
|
|
||||||
|
// under PHP 8 the destructor is called to late and the response is not send
|
||||||
|
Json\Response::sendResult();
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,6 +67,8 @@ function ajax_exception_handler($e)
|
|||||||
}
|
}
|
||||||
$response->alert($message);
|
$response->alert($message);
|
||||||
|
|
||||||
|
// under PHP 8 the destructor is called to late and the response is not send
|
||||||
|
Json\Response::sendResult();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user