From 7480e7e75fa639232014dea6971710d798e92949 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 1 Apr 2021 08:22:27 +0200 Subject: [PATCH] fix expired session gives client-side parse-error under PHP 8 --- json.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/json.php b/json.php index cb7686d9a8..782d691f1b 100644 --- a/json.php +++ b/json.php @@ -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; }