fix expired session gives client-side parse-error under PHP 8

This commit is contained in:
Ralf Becker 2021-04-01 08:22:27 +02:00
parent 81e918d010
commit 7480e7e75f

View File

@ -32,6 +32,8 @@ function login_redirect(&$anon_account)
$response->apply('framework.callOnLogout');
$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();
}
@ -65,6 +67,8 @@ function ajax_exception_handler($e)
}
$response->alert($message);
// under PHP 8 the destructor is called to late and the response is not send
Json\Response::sendResult();
exit;
}