From 55379a0adb64c2c972480cdce8682db61b524882 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 23 Nov 2011 08:23:01 -0600 Subject: [PATCH] Trim line of code in form class. --- laravel/form.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/laravel/form.php b/laravel/form.php index 5c21bfaf..b9a140e1 100644 --- a/laravel/form.php +++ b/laravel/form.php @@ -87,7 +87,9 @@ class Form { */ protected static function action($action, $https) { - return HTML::entities(URL::to(((is_null($action)) ? Request::uri() : $action), $https)); + $uri = (is_null($action)) ? URI::current() : $action; + + return HTML::entities(URL::to($uri, $https)); } /** @@ -540,4 +542,4 @@ class Form { } } -} +} \ No newline at end of file