Welcome Guest, Not a member yet? Register   Sign In
system/libraries/Router.php function _validate_request

Hello together,

i found following bug on function _validate_request($segments) on line 201:

if (file_exists(APPPATH.'controllers/'.$segments[0].EXT))

if i check the path "application/controllers/login.php", file_exists returns a false, because the function is case sensitive on linux.

$route['default_controller'] = "Login";

the default controller is set to "Login" but $segments[0] contains the value "login".

so i hope you understand my problem, because i get a "404 page not found" concerning this case sensitive function.


Err how about:
$route['default_controller'] = "login";

if i change the php file to login.php instead of Login.php, i can solve this problem. codeigniter should find the controller, whatever the php file is upper case or lower case.

but you are true, thats more a usability question instead of a critical system bug.

It's not a bug nor usability question. Linux is case sensitive.

Theme © iAndrew 2016 - Forum software by © MyBB