From 61be34c2539dffe402c9d2d070d68fd61c9e28b2 Mon Sep 17 00:00:00 2001 From: Pascal Seeland Date: Fri, 11 Feb 2022 23:06:25 +0100 Subject: [PATCH] Fix issue is no HTTP_COOKIE key is available in $_SERVER --- .../Logging/classes/error/class.ilLoggingErrorFileStorage.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Services/Logging/classes/error/class.ilLoggingErrorFileStorage.php b/Services/Logging/classes/error/class.ilLoggingErrorFileStorage.php index f2717644703f..3961569dcca5 100644 --- a/Services/Logging/classes/error/class.ilLoggingErrorFileStorage.php +++ b/Services/Logging/classes/error/class.ilLoggingErrorFileStorage.php @@ -136,6 +136,9 @@ private function hidePassword(array $post) : array */ private function shortenPHPSessionId(array $server) : array { + if (!isset($server["HTTP_COOKIE"])) { + return $server; + } $cookie_content = $server["HTTP_COOKIE"]; $cookie_content = explode(";", $cookie_content);