summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-09-30 22:13:53 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-09-30 22:13:53 +0200
commit8f99224e6c6d3ac51cb0f356e2e0feb10fa93f31 (patch)
tree76817fdbf7e0b19a3ec6d44cd9beed1fe22e9279 /system
parent52dc8ca4372eb36e9186cef0e34bf0cafe5b1cd8 (diff)
Added a case-sensitivity check to called controller methods, as per this bug report: http://codeigniter.com/bug_tracker/bug/4560/
Diffstat (limited to 'system')
-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}");