mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Applying optimization in Router::__parseExtension from 'robustsolution'. Fixes #301
This commit is contained in:
parent
9376826aa4
commit
8b1a2b1f72
1 changed files with 1 additions and 0 deletions
|
@ -562,6 +562,7 @@ class Router extends Object {
|
||||||
if (strcasecmp($name, $match) === 0) {
|
if (strcasecmp($name, $match) === 0) {
|
||||||
$url = substr($url, 0, strpos($url, '.' . $name));
|
$url = substr($url, 0, strpos($url, '.' . $name));
|
||||||
$ext = $match;
|
$ext = $match;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue