fixed bug in router.

This commit is contained in:
Taylor Otwell
2012-01-18 11:41:13 -06:00
parent 6865db3f21
commit 73c09f2f29
4 changed files with 8 additions and 4 deletions

View File

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