From d02f4deb8fc60a2331592b789be3ff4681fad7ad Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 3 Feb 2012 09:39:10 -0600 Subject: [PATCH] tweaking bootstrap. --- laravel/laravel.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/laravel/laravel.php b/laravel/laravel.php index afcd47d1..3a4941b0 100644 --- a/laravel/laravel.php +++ b/laravel/laravel.php @@ -154,12 +154,14 @@ foreach (Bundle::all() as $bundle => $config) * 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)) {