From bc8fa3570e6854cff7283940a8181ceb6781aaf4 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 17 Jun 2011 00:16:55 -0500 Subject: [PATCH] fixed bug in route parameterizer. --- system/url.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/url.php b/system/url.php index fc383be1..b048dd7d 100644 --- a/system/url.php +++ b/system/url.php @@ -92,7 +92,7 @@ public static function to_route($name, $parameters = array(), $https = false) // ---------------------------------------------------- foreach ($parameters as $parameter) { - $uri = preg_replace('/\(.+\)/', $parameter, $uri, 1); + $uri = preg_replace('/\(.+?\)/', $parameter, $uri, 1); } return static::to($uri, $https);