"Adding fix for admin being searched in entire string"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3382 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-08-07 11:32:42 +00:00
parent ba14aac3a0
commit 6cade0a681

View file

@ -145,7 +145,7 @@ class Dispatcher extends Object {
}
} else {
$__access = strpos($params['action'], CAKE_ADMIN);
if ($__access !== false) {
if ($__access === 0) {
$privateAction = true;
}
}