mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge pull request #620 from tigrang/2.1
Fixed bug in Router::normalize()
This commit is contained in:
commit
d98c087cb0
1 changed files with 2 additions and 1 deletions
|
@ -1014,7 +1014,8 @@ class Router {
|
||||||
public static function normalize($url = '/') {
|
public static function normalize($url = '/') {
|
||||||
if (is_array($url)) {
|
if (is_array($url)) {
|
||||||
$url = Router::url($url);
|
$url = Router::url($url);
|
||||||
} elseif (preg_match('/^[a-z\-]+:\/\//', $url)) {
|
}
|
||||||
|
if (preg_match('/^[a-z\-]+:\/\//', $url)) {
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
$request = Router::getRequest();
|
$request = Router::getRequest();
|
||||||
|
|
Loading…
Reference in a new issue