From 7a8e04cbdd6e4cea79beede8dc233b0f9ebf3b8e Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 7 Jul 2011 09:37:14 -0700 Subject: [PATCH] Added comment to Router class. --- system/router.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/router.php b/system/router.php index d341b4a3..f2de59fe 100644 --- a/system/router.php +++ b/system/router.php @@ -44,6 +44,9 @@ public static function route($method, $uri) if (preg_match('#^'.$key.'$#', $method.' '.$uri)) { + // Remove the leading slashes from the route and request URIs. Also trim + // the request method off of the route URI. This should get the request + // and route URIs in the same format so we can extract the parameters. $uri = trim($uri, '/'); $key = trim(substr($key, strlen($method.' ')), '/');