diff --git a/system/router.php b/system/router.php index 7026411c0..8a2a6a30a 100644 --- a/system/router.php +++ b/system/router.php @@ -55,7 +55,7 @@ class Router { // -------------------------------------------------------------- // 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)) {