diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-09-04 16:37:32 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-09-04 16:37:32 +0200 |
commit | 855b7b25aeba021400aa6a3438e2ab19c3b63907 (patch) | |
tree | e8790191e864b2acd4bd9a8232d8d457c943026f /application/core | |
parent | cce1fe9bfea359cebae585eaaa944650bace4966 (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.php | 1 |
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; } |