Permalink
Browse files

[HttpFoundation] fixed a small regression

  • Loading branch information...
1 parent a12c685 commit aad8136cd1bd90312f4c41affd473c25c6a56932 @fabpot fabpot committed Dec 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Symfony/Component/HttpFoundation/Request.php
@@ -813,7 +813,7 @@ public function getHost()
}
// Trim and remove port number from host
- $host = trim(preg_replace('/:\d+$/', '', $host));
+ $host = preg_replace('/:\d+$/', '', trim($host));
// as the host can come from the user (HTTP_HOST and depending on the configuration, SERVER_NAME too can come from the user)
// check that it does not contain forbidden characters (see RFC 952 and RFC 2181)

0 comments on commit aad8136

Please sign in to comment.