diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-02-28 19:20:18 +0100 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-02-28 19:20:18 +0100 |
commit | 3951e8e3c56e9ddef2048350bde8b39cbef1568a (patch) | |
tree | 3dd9589f09df9b4b620d66e88f8d0ba92008a10f /system | |
parent | 8a1607772c5e9221884d9f0a39a514536f1fe21d (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.
Diffstat (limited to 'system')
-rw-r--r-- | system/codeigniter/CodeIgniter.php | 2 |
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}");
}
|