From bcbdb1cf1dd3811c44bf34ab65169a55d38f8fb5 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 5 Sep 2009 01:06:18 -0400 Subject: [PATCH] Fixing issue where admin revere routing was possibly unsuccessful due to differences in action param between route and url arrays. Fixes #44 and #6173 --- cake/libs/router.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cake/libs/router.php b/cake/libs/router.php index 45dc5c12a..0b2b3b61c 100644 --- a/cake/libs/router.php +++ b/cake/libs/router.php @@ -763,6 +763,9 @@ class Router extends Object { } else { $params = end($_this->__params); } + if (isset($params['prefix']) && strpos($params['action'], $params['prefix']) === 0) { + $params['action'] = substr($params['action'], strlen($params['prefix']) + 1); + } } $path = array('base' => null);