added route test for handles method. fixed bug in route class.

This commit is contained in:
Taylor Otwell
2012-01-18 11:25:11 -06:00
parent f4e1eaf29e
commit aa427bbd39
2 changed files with 26 additions and 1 deletions

View File

@@ -79,7 +79,7 @@ class Route {
*/
protected static function extract($segment)
{
$uri = substr($segment, strpos($segment, ' ') + 1);
$uri = substr($segment, strpos($segment, ' '));
return ($uri !== '/') ? trim($uri, '/') : $uri;
}