From 855b7b25aeba021400aa6a3438e2ab19c3b63907 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 4 Sep 2013 16:37:32 +0200 Subject: 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 --- application/core/MY_Controller.php | 1 - 1 file changed, 1 deletion(-) (limited to 'application/core/MY_Controller.php') 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; } -- cgit v1.2.3-24-g4f1b