Browse files

Fixed bug in Router::normalize()

  • Loading branch information...
1 parent 7846254 commit 49eac06d892402f49a43415c8e41e110b5bf6232 @tigrang tigrang committed Apr 22, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Cake/Routing/Router.php
View
3 lib/Cake/Routing/Router.php
@@ -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();

0 comments on commit 49eac06

Please sign in to comment.