Skip to content
Snippets Groups Projects
Commit 9adcd15c authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Use [0] instead of current as HHVM might have problems with that

parent 1c6eae90
No related branches found
No related tags found
No related merge requests found
......@@ -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']);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment