summaryrefslogtreecommitdiffstats
path: root/system/libraries/Router.php
diff options
context:
space:
mode:
authorpaulburdick <devnull@localhost>2007-06-28 02:02:30 +0200
committerpaulburdick <devnull@localhost>2007-06-28 02:02:30 +0200
commit691010e72ec7fb4a05740332a10b5f046a82c666 (patch)
treea6bbadd04da62eb7bf5a292f4cfb6162736cf743 /system/libraries/Router.php
parent01f0888f7d574b92104f8aedf77ab5426d753fd3 (diff)
Instead of doing file name security for Enable Query Strings, I am using the already existin _filter_uri()
Diffstat (limited to 'system/libraries/Router.php')
-rw-r--r--system/libraries/Router.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/system/libraries/Router.php b/system/libraries/Router.php
index e2a14800d..6af6ad380 100644
--- a/system/libraries/Router.php
+++ b/system/libraries/Router.php
@@ -49,7 +49,6 @@ class CI_Router {
function CI_Router()
{
$this->config =& load_class('Config');
- $this->input =& load_class('Input');
$this->_set_route_mapping();
log_message('debug', "Router Class Initialized");
}
@@ -71,11 +70,11 @@ class CI_Router {
// If so, we're done since segment based URIs are not used with query strings.
if ($this->config->item('enable_query_strings') === TRUE AND isset($_GET[$this->config->item('controller_trigger')]))
{
- $this->set_class($_GET[$this->config->item('controller_trigger')]);
+ $this->set_class(trim($this->_filter_uri($_GET[$this->config->item('controller_trigger')])));
if (isset($_GET[$this->config->item('function_trigger')]))
{
- $this->set_method($_GET[$this->config->item('function_trigger')]);
+ $this->set_method(trim($this->_filter_uri($_GET[$this->config->item('function_trigger')])));
}
return;
@@ -483,7 +482,7 @@ class CI_Router {
*/
function set_class($class)
{
- $this->class = $this->input->filename_security($class);
+ $this->class = $class;
}
// --------------------------------------------------------------------
@@ -510,7 +509,7 @@ class CI_Router {
*/
function set_method($method)
{
- $this->method = $this->input->filename_security($method);
+ $this->method = $method;
}
// --------------------------------------------------------------------
@@ -542,7 +541,7 @@ class CI_Router {
*/
function set_directory($dir)
{
- $this->directory = $this->input->filename_security($dir).'/';
+ $this->directory = $dir.'/';
}
// --------------------------------------------------------------------