tweaking bootstrap.

This commit is contained in:
Taylor Otwell 2012-02-03 09:39:10 -06:00
parent d681f49920
commit d02f4deb8f
1 changed files with 3 additions and 1 deletions

View File

@ -154,12 +154,14 @@
* static property. If no route is found, the 404 response will
* be returned to the browser.
*/
$uri = URI::current();
if (count(URI::$segments) > 15)
{
throw new \Exception("Invalid request. Too many URI segments.");
}
Request::$route = Routing\Router::route(Request::method(), URI::current());
Request::$route = Routing\Router::route(Request::method(), $uri);
if (is_null(Request::$route))
{