From 551b85533471fc417b18e3771eb0b863dd43f76f Mon Sep 17 00:00:00 2001 From: Alexandre Choura Date: Wed, 14 Feb 2024 11:05:30 +0100 Subject: [PATCH] fix: cgi-fcgi status code --- system/core/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/core/Common.php b/system/core/Common.php index c7bb34549b5..fdad4e206ce 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -564,7 +564,7 @@ function set_status_header($code = 200, $text = '') } } - if (strpos(PHP_SAPI, 'cgi') === 0) + if (PHP_SAPI === "cgi") { header('Status: '.$code.' '.$text, TRUE); return;