mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed bug in Router::normalize()
This commit is contained in:
parent
7846254c63
commit
49eac06d89
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue