mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-23 07:15:50 -04:00
Make sure admin method exist before we call them, else we'll just recurse into Admin_Controller::__call() again
This commit is contained in:
@@ -43,6 +43,10 @@ class Admin_Controller extends Controller {
|
||||
$method = "index";
|
||||
}
|
||||
|
||||
if (!method_exists($controller_name, $method)) {
|
||||
return kohana::show_404();
|
||||
}
|
||||
|
||||
call_user_func_array(array(new $controller_name, $method), $args);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user