Fixed bug in Router::normalize()

This commit is contained in:
Tigran Gabrielyan 2012-04-21 18:33:58 -07:00
parent 7846254c63
commit 49eac06d89

View file

@ -1014,7 +1014,8 @@ class Router {
public static function normalize($url = '/') {
if (is_array($url)) {
$url = Router::url($url);
} elseif (preg_match('/^[a-z\-]+:\/\//', $url)) {
}
if (preg_match('/^[a-z\-]+:\/\//', $url)) {
return $url;
}
$request = Router::getRequest();