summaryrefslogtreecommitdiffstats
path: root/system/libraries/Router.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-02-27 06:19:50 +0100
committerDerek Jones <derek.jones@ellislab.com>2008-02-27 06:19:50 +0100
commit8a1607772c5e9221884d9f0a39a514536f1fe21d (patch)
tree7a2033dc494d5656427ec16656374d6acfd7bab0 /system/libraries/Router.php
parent2c6dda41c8207ffa704934a1fbde65769ce86992 (diff)
added improved check for controller method access so that CI does not attempt to load private or protected controller methods
added controller/method details to framework initiated 404 pages for logging
Diffstat (limited to 'system/libraries/Router.php')
-rw-r--r--system/libraries/Router.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Router.php b/system/libraries/Router.php
index f6464a31d..d9dd6dd3f 100644
--- a/system/libraries/Router.php
+++ b/system/libraries/Router.php
@@ -204,7 +204,7 @@ class CI_Router {
// Does the requested controller exist in the sub-folder?
if ( ! file_exists(APPPATH.'controllers/'.$this->fetch_directory().$segments[0].EXT))
{
- show_404();
+ show_404($this->fetch_directory().$segments[0]);
}
}
else
@@ -225,7 +225,7 @@ class CI_Router {
}
// Can't find the requested controller...
- show_404();
+ show_404($segments[0]);
}
// --------------------------------------------------------------------