diff --git a/cake/libs/router.php b/cake/libs/router.php index 952fd7601..2ed59d978 100644 --- a/cake/libs/router.php +++ b/cake/libs/router.php @@ -30,9 +30,10 @@ * Included libraries. * */ - if (!class_exists('Object')) { - uses ('object'); - } +if (!class_exists('Object')) { + uses ('object'); +} + /** * Parses the request URL into controller, action, and parameters. * @@ -277,9 +278,7 @@ class Router extends Overloadable { $out[$names[$ii]] = $found; } else { // unnamed elements go in as 'pass' - $pass = new NeatArray(explode('/', $found)); - $pass->cleanup(); - $out['pass'] = $pass->value; + $out['pass'] = array_filter(explode('/', $found)); } $ii++; }