From e1f00432a7cec65fa9a017f94fb7e914fdcad7b4 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 22 Jun 2017 13:19:08 +0100 Subject: [PATCH] [0] has already been checked, should presumably be [1] tha is checked here --- system/classes/route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."); }