mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding admin route matching fix (Ticket #2541)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5069 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
130d95bd5d
commit
8fb9acc981
1 changed files with 4 additions and 0 deletions
|
@ -583,6 +583,10 @@ class Router extends Object {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (defined('CAKE_ADMIN') && isset($pass[CAKE_ADMIN])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach($pass as $key => $value) {
|
||||
if(!is_numeric($key)) {
|
||||
unset($pass[$key]);
|
||||
|
|
Loading…
Add table
Reference in a new issue