summaryrefslogtreecommitdiffstats
path: root/system/core/Input.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-12-14 17:41:52 +0100
committerAndrey Andreev <narf@devilix.net>2016-12-14 17:41:52 +0100
commit9f20c8011a80d74edb740081cd96388bb6a967e6 (patch)
tree281a63537895b7a92b15762815a0776310e67ab6 /system/core/Input.php
parentdcd6f5153b7e7e6d798d5a77af65b7460f152e5c (diff)
Move csrf_verify() call out of CI_Input
Diffstat (limited to 'system/core/Input.php')
-rw-r--r--system/core/Input.php20
1 files changed, 1 insertions, 19 deletions
diff --git a/system/core/Input.php b/system/core/Input.php
index d881e253d..ab60e45c3 100644
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -58,16 +58,6 @@ class CI_Input {
protected $ip_address = FALSE;
/**
- * Enable CSRF flag
- *
- * Enables a CSRF cookie token to be set.
- * Set automatically based on config setting.
- *
- * @var bool
- */
- protected $_enable_csrf = FALSE;
-
- /**
* List of all HTTP request headers
*
* @var array
@@ -115,15 +105,7 @@ class CI_Input {
*/
public function __construct(CI_Security &$security)
{
- $this->_enable_csrf = (config_item('csrf_protection') === TRUE);
- $this->security = $security;
-
- // CSRF Protection check
- if ($this->_enable_csrf === TRUE && ! is_cli())
- {
- $this->security->csrf_verify();
- }
-
+ $this->security = $security;
log_message('info', 'Input Class Initialized');
}