Permalink
Browse files

Fixing issue where admin revere routing was possibly unsuccessful due…

… to differences in action param between route and url arrays. Fixes #44 and #6173
  • Loading branch information...
1 parent 12457ac commit bcbdb1cf1dd3811c44bf34ab65169a55d38f8fb5 @markstory markstory committed Sep 5, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 cake/libs/router.php
@@ -763,6 +763,9 @@ function url($url = null, $full = false) {
} 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);

0 comments on commit bcbdb1c

Please sign in to comment.