From 3cffaf589d5d1e3408312d5e4b6af26e987d90d6 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 15 Jun 2011 06:25:44 -0700 Subject: [PATCH] Changed (:any) wildcard to more restrictive. --- system/router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/router.php b/system/router.php index 7026411c..8a2a6a30 100644 --- a/system/router.php +++ b/system/router.php @@ -55,7 +55,7 @@ public static function route($method, $uri) // -------------------------------------------------------------- // Convert the route wild-cards to regular expressions. // -------------------------------------------------------------- - $route = str_replace(':num', '[0-9]+', str_replace(':any', '.+', $route)); + $route = str_replace(':num', '[0-9]+', str_replace(':any', '[a-zA-Z0-9\-_]+', $route)); if (preg_match('#^'.$route.'$#', $method.' '.$uri)) {