Skip to content

Commit

Permalink
[HttpFoundation] made the host lowercase as per RFC 952/2181
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 23, 2012
1 parent d5090ee commit c4dfe93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Symfony/Component/HttpFoundation/Request.php
Expand Up @@ -833,7 +833,8 @@ public function getHost()
// Remove port number from host
$host = preg_replace('/:\d+$/', '', $host);

return trim($host);
// host is lowercase as per RFC2616
return trim(strtolower($host));
}

/**
Expand Down

0 comments on commit c4dfe93

Please sign in to comment.