[RequestHandler] fixed typo

This commit is contained in:
Fabien Potencier 2010-06-22 16:25:42 +02:00
parent 8ea13f910c
commit 2a2ed30b87
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ class Request
public function getHost()
{
if ($host = $this->headers->get('X_FORWARDED_HOST')) {
$elements = implode(',', $host);
$elements = explode(',', $host);
return trim($elements[count($elements) - 1]);
} else {