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

[eluser]Unknown[/eluser]
Hello together,

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

Code:
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.

routes.php
Code:
$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.

greetings
#2

[eluser]n0xie[/eluser]
Err how about:
Code:
$route['default_controller'] = "login";
#3

[eluser]Unknown[/eluser]
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.
#4

[eluser]n0xie[/eluser]
It's not a bug nor usability question. Linux is case sensitive.




Theme © iAndrew 2016 - Forum software by © MyBB