Fixed bug in Router::normalize() #620

Merged
merged 1 commit into from Apr 22, 2012
Jump to file or symbol
Failed to load files and symbols.
+2 −1
Split
@@ -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();