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:
nate 2007-05-13 02:00:24 +00:00
parent 130d95bd5d
commit 8fb9acc981

View file

@ -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]);