diff --git a/system/core/Common.php b/system/core/Common.php index c7bb34549b..fdad4e206c 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;