summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/codeigniter/CodeIgniter.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php
index 692d84a38..27094d240 100644
--- a/system/codeigniter/CodeIgniter.php
+++ b/system/codeigniter/CodeIgniter.php
@@ -169,11 +169,10 @@ $BM->mark('loading_time_base_classes_end');
$class = $RTR->fetch_class();
$method = $RTR->fetch_method();
-
if ( ! class_exists($class)
OR $method == 'controller'
OR strncmp($method, '_', 1) == 0
- OR in_array($method, get_class_methods('Controller'), TRUE)
+ OR in_array(strtolower($method), array_map('strtolower', get_class_methods('Controller')))
)
{
show_404("{$class}/{$method}");