From 3951e8e3c56e9ddef2048350bde8b39cbef1568a Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Thu, 28 Feb 2008 18:20:18 +0000 Subject: modified the new check for a callable controller method to be case-insensitive for backwards compatibility and consistent behavior between PHP 4 and 5. --- system/codeigniter/CodeIgniter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') 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}"); } -- cgit v1.2.3-24-g4f1b