diff --git a/cake/libs/router.php b/cake/libs/router.php index 37dca7eef..7b5fa06b7 100644 --- a/cake/libs/router.php +++ b/cake/libs/router.php @@ -153,7 +153,7 @@ class Router extends Overloadable { if (preg_match('/^:(.+)$/', $element, $r)) { if (isset($requirements[$r[1]])) { - $parsed[] = '(?:\/(' . $requirements[$r[1]] . '))?'; + $parsed[] = '(?:\/(' . $requirements[$r[1]] . '))'; } else { $parsed[] = '(?:\/([^\/]+))?'; }