diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-02-24 13:37:34 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-02-24 13:37:34 +0100 |
commit | 9adcd15cb35ef4f02db073116dcce78c735cd292 (patch) | |
tree | 17cbae73801ac9f322fea300a1c1b2c4083f4dce /lib | |
parent | 1c6eae90173b2b323a8e4633cda5f37eafa5a1d4 (diff) | |
download | nextcloud-server-9adcd15cb35ef4f02db073116dcce78c735cd292.tar.gz nextcloud-server-9adcd15cb35ef4f02db073116dcce78c735cd292.zip |
Use [0] instead of current as HHVM might have problems with that
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/appframework/http/request.php | 2 |
1 files changed, 1 insertions, 1 deletions
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']); } |