From 9adcd15cb35ef4f02db073116dcce78c735cd292 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 24 Feb 2015 13:37:34 +0100 Subject: [PATCH] Use [0] instead of current as HHVM might have problems with that --- lib/private/appframework/http/request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/appframework/http/request.php b/lib/private/appframework/http/request.php index f415d6faf2e..7cbeaa0480e 100644 --- a/lib/private/appframework/http/request.php +++ b/lib/private/appframework/http/request.php @@ -493,7 +493,7 @@ class Request implements \ArrayAccess, \Countable, IRequest { if (isset($this->server['HTTP_X_FORWARDED_PROTO'])) { if (strpos($this->server['HTTP_X_FORWARDED_PROTO'], ',') !== false) { $parts = explode(',', $this->server['HTTP_X_FORWARDED_PROTO']); - $proto = strtolower(trim(current($parts))); + $proto = strtolower(trim($parts[0])); } else { $proto = strtolower($this->server['HTTP_X_FORWARDED_PROTO']); } -- 2.39.5