From 49eac06d892402f49a43415c8e41e110b5bf6232 Mon Sep 17 00:00:00 2001 From: Tigran Gabrielyan Date: Sat, 21 Apr 2012 18:33:58 -0700 Subject: [PATCH] Fixed bug in Router::normalize() --- lib/Cake/Routing/Router.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Routing/Router.php b/lib/Cake/Routing/Router.php index 86ed4edb5..62cda92e7 100644 --- a/lib/Cake/Routing/Router.php +++ b/lib/Cake/Routing/Router.php @@ -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();