summaryrefslogtreecommitdiffstats
path: root/application/core
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-09-04 16:37:32 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-09-04 16:37:32 +0200
commit855b7b25aeba021400aa6a3438e2ab19c3b63907 (patch)
treee8790191e864b2acd4bd9a8232d8d457c943026f /application/core
parentcce1fe9bfea359cebae585eaaa944650bace4966 (diff)
Replace is_cli_client() with stateful_client where applicable
Stateless clients (cli client and clients using api keys) can't reclaim IDs (no cookie) so they should be required to log in asap and they will always get an error if they didn't log in. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/core')
-rw-r--r--application/core/MY_Controller.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/application/core/MY_Controller.php b/application/core/MY_Controller.php
index e1c6cc96e..008c48dec 100644
--- a/application/core/MY_Controller.php
+++ b/application/core/MY_Controller.php
@@ -80,7 +80,6 @@ class MY_Controller extends CI_Controller {
$csrf_protection = false;
}
- // TODO: replace cli client with request_type("plain")?
if (is_cli_client() && in_array($uri_start, $csrf_whitelisted_handlers["cli_client"])) {
$csrf_protection = false;
}