From 7fd13d406c9506def92708ad0b230fea5c04d6c5 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 10 Feb 2014 01:38:32 +1100 Subject: [PATCH] Fixed prefixed action prefix reverse routing match. One liner. --- lib/Cake/Routing/Route/CakeRoute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Routing/Route/CakeRoute.php b/lib/Cake/Routing/Route/CakeRoute.php index bab5c23a59b..43a3fd168f8 100644 --- a/lib/Cake/Routing/Route/CakeRoute.php +++ b/lib/Cake/Routing/Route/CakeRoute.php @@ -490,7 +490,7 @@ protected function _writeUrl($params) { $prefixed = $params['prefix'] . '_'; } if (isset($prefixed, $params['action']) && strpos($params['action'], $prefixed) === 0) { - $params['action'] = substr($params['action'], strlen($prefixed) * -1); + $params['action'] = substr($params['action'], strlen($prefixed) ); unset($params['prefix']); }