From 6af7008ac69eaeac1835f4ccabd1404cdeca433c Mon Sep 17 00:00:00 2001 From: jeph864 Date: Fri, 24 Nov 2023 15:44:35 +0100 Subject: [PATCH] skip the re-replacement of super globals for soap when already replaced --- Services/Init/classes/class.ilInitialisation.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Services/Init/classes/class.ilInitialisation.php b/Services/Init/classes/class.ilInitialisation.php index 771d86e646cd..9ec59662e4a6 100644 --- a/Services/Init/classes/class.ilInitialisation.php +++ b/Services/Init/classes/class.ilInitialisation.php @@ -1528,6 +1528,9 @@ protected static function replaceSuperGlobals(\ILIAS\DI\Container $container): v ); if ($replace_super_globals) { + if(ilContext::getType() == ilContext::CONTEXT_SOAP_NO_AUTH){ + return; + } $throwOnValueAssignment = defined('DEVMODE') && DEVMODE; $_GET = new SuperGlobalDropInReplacement($container['refinery'], $_GET, $throwOnValueAssignment);