Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-05-01 08:43:07 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-01 08:43:07 +0400
commitf7f5296b19316427c34551138b98b639e505546e (patch)
tree2ddc15d784abcd4c6934cf74aaf6082d84de66f9 /core/ProxyHttp.php
parenta4710cbb1718d010f52f8386de42cd3023269805 (diff)
Refs #5060 Remove use of substr_compare as it's buggy in 5.5.11 with negative offset
Diffstat (limited to 'core/ProxyHttp.php')
-rw-r--r--core/ProxyHttp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ProxyHttp.php b/core/ProxyHttp.php
index 7115f5917f..7ebb7c7088 100644
--- a/core/ProxyHttp.php
+++ b/core/ProxyHttp.php
@@ -221,7 +221,7 @@ class ProxyHttp
*/
protected static function setHttpStatus($status)
{
- if (substr_compare(PHP_SAPI, '-fcgi', -5)) {
+ if (strpos(PHP_SAPI, '-fcgi') !== false) {
@header($_SERVER['SERVER_PROTOCOL'] . ' ' . $status);
} else {
// FastCGI