Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #620 from tigrang/2.1

Fixed bug in Router::normalize()
  • Loading branch information...
commit d98c087cb0a7c45178e7c25775d1087d991a37a6 2 parents 7846254 + 49eac06
@markstory markstory authored
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();
Please sign in to comment.
Something went wrong with that request. Please try again.