[HttpFoundation] made the host lowercase as per RFC 952/2181

This commit is contained in:
Fabien Potencier 2012-03-23 20:09:19 +01:00
parent d5090ee044
commit c4dfe931f1
1 changed files with 2 additions and 1 deletions

View File

@ -833,7 +833,8 @@ class Request
// Remove port number from host
$host = preg_replace('/:\d+$/', '', $host);
return trim($host);
// host is lowercase as per RFC2616
return trim(strtolower($host));
}
/**