diff --git a/system/classes/route.php b/system/classes/route.php index 2419b72..4d51917 100755 --- a/system/classes/route.php +++ b/system/classes/route.php @@ -128,7 +128,7 @@ private function _parse() /** * Validate that the method name is valid, this also prevents directory traversal. */ - if(!preg_match($this->construct_regex, $segments[0])) + if(!preg_match($this->construct_regex, $segments[1])) { throw new Exception("Invalid charators detecting in the route."); }