Skip to content

Commit

Permalink
Fixed bug in Router::normalize()
Browse files Browse the repository at this point in the history
  • Loading branch information
tigrang committed Apr 22, 2012
1 parent 7846254 commit 49eac06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/Routing/Router.php
Expand Up @@ -1014,7 +1014,8 @@ public static function reverse($params, $full = false) {
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();
Expand Down

0 comments on commit 49eac06

Please sign in to comment.