Skip to content

Commit 6d4a69e

Browse files
[FIX] SOAP: Fix fragile HTTPS detection which can lead to PHP error (#11224) (#11341) (#11342)
Co-authored-by: Michael Jansen <mjansen@databay.de>
1 parent 78466a0 commit 6d4a69e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/ILIAS/soap/resources/soap/server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
$headerValue = $ilIliasIniFile->readVariable('https', 'auto_https_detect_header_value');
4545

4646
$headerName = 'HTTP_' . str_replace('-', '_', strtoupper($headerName));
47-
if (strcasecmp($_SERVER[$headerName], $headerValue) === 0) {
47+
if (strcasecmp($_SERVER[$headerName] ?? '', $headerValue) === 0) {
4848
$_SERVER['HTTPS'] = 'on';
4949
}
5050
}

0 commit comments

Comments
 (0)