Welcome Guest, Not a member yet? Register   Sign In
calling controller constructor via url ...
#7

[eluser]Seppo[/eluser]
I think this may be consider as a bug... I think CI should not allow calling constructors...

Something like this?
Code:
if ( ! class_exists($class)
    OR $method == 'controller'
    OR substr($method, 0, 1) == '_'
    OR in_array($method, get_class_methods('Controller'), TRUE
    OR strtolower($method) == strtolower($class))
    )
{
    show_404("{$class}/{$method}");
}


Messages In This Thread
calling controller constructor via url ... - by El Forum - 03-05-2008, 08:45 AM
calling controller constructor via url ... - by El Forum - 03-05-2008, 09:04 AM
calling controller constructor via url ... - by El Forum - 03-05-2008, 09:31 AM
calling controller constructor via url ... - by El Forum - 03-05-2008, 09:35 AM
calling controller constructor via url ... - by El Forum - 03-05-2008, 09:38 AM
calling controller constructor via url ... - by El Forum - 03-05-2008, 09:45 AM
calling controller constructor via url ... - by El Forum - 03-05-2008, 06:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB