summaryrefslogtreecommitdiffstats
path: root/tests/mocks/core/input.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-12-14 12:45:45 +0100
committerAndrey Andreev <narf@devilix.net>2016-12-14 12:45:45 +0100
commitff773c059cb984920767dd6187c30a77e5bf78c9 (patch)
treed5a33583d47199423451c72e5e3ec206fb8f0e02 /tests/mocks/core/input.php
parent4e0c208f24b0755c47905e17b82854c538a0c530 (diff)
Finally drop CI_Input::_sanitize_globals()
Close #4101
Diffstat (limited to 'tests/mocks/core/input.php')
-rw-r--r--tests/mocks/core/input.php19
1 files changed, 1 insertions, 18 deletions
diff --git a/tests/mocks/core/input.php b/tests/mocks/core/input.php
index 40e27441f..4d217a252 100644
--- a/tests/mocks/core/input.php
+++ b/tests/mocks/core/input.php
@@ -11,16 +11,10 @@ class Mock_Core_Input extends CI_Input {
*/
public function __construct($security, $utf8)
{
- $this->_allow_get_array = (config_item('allow_get_array') === TRUE);
- $this->_enable_xss = (config_item('global_xss_filtering') === TRUE);
$this->_enable_csrf = (config_item('csrf_protection') === TRUE);
// Assign Security and Utf8 classes
$this->security = $security;
- $this->uni = $utf8;
-
- // Sanitize global arrays
- $this->_sanitize_globals();
}
public function fetch_from_array($array, $index = '', $xss_clean = FALSE)
@@ -28,16 +22,6 @@ class Mock_Core_Input extends CI_Input {
return parent::_fetch_from_array($array, $index, $xss_clean);
}
- /**
- * Lie about being a CLI request
- *
- * We take advantage of this in libraries/Session_test
- */
- public function is_cli_request()
- {
- return FALSE;
- }
-
public function __set($name, $value)
{
if ($name === 'ip_address')
@@ -45,5 +29,4 @@ class Mock_Core_Input extends CI_Input {
$this->ip_address = $value;
}
}
-
-} \ No newline at end of file
+}