summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-02-28 19:20:18 +0100
committerDerek Jones <derek.jones@ellislab.com>2008-02-28 19:20:18 +0100
commit3951e8e3c56e9ddef2048350bde8b39cbef1568a (patch)
tree3dd9589f09df9b4b620d66e88f8d0ba92008a10f
parent8a1607772c5e9221884d9f0a39a514536f1fe21d (diff)
modified the new check for a callable controller method to be case-insensitive for backwards compatibility and consistent behavior between PHP 4 and 5.
-rw-r--r--system/codeigniter/CodeIgniter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php
index d1ef965cc..866be35cc 100644
--- a/system/codeigniter/CodeIgniter.php
+++ b/system/codeigniter/CodeIgniter.php
@@ -216,7 +216,7 @@ else
{
// is_callable() returns TRUE on some versions of PHP 5 for private and protected
// methods, so we'll use this workaround for consistent behavior
- if (! in_array($method, get_class_methods($CI)))
+ if (! in_array(strtolower($method), array_map('strtolower', get_class_methods($CI))))
{
show_404("{$class}/{$method}");
}