summaryrefslogtreecommitdiffstats
path: root/application/core
diff options
context:
space:
mode:
Diffstat (limited to 'application/core')
-rw-r--r--application/core/MY_Controller.php12
1 files changed, 0 insertions, 12 deletions
diff --git a/application/core/MY_Controller.php b/application/core/MY_Controller.php
index 68ee302a9..bf81afa14 100644
--- a/application/core/MY_Controller.php
+++ b/application/core/MY_Controller.php
@@ -70,23 +70,11 @@ class MY_Controller extends CI_Controller {
"file/do_upload",
"file/do_paste",
),
- "cli_client" => array(
- "file/do_delete",
- "file/delete",
- "file/do_multipaste",
- "file/upload_history",
- "user/create_apikey",
- "file/get_max_size",
- ),
);
if (in_array($uri_start, $csrf_whitelisted_handlers["always"])) {
$csrf_protection = false;
}
- if (is_api_client() && in_array($uri_start, $csrf_whitelisted_handlers["cli_client"])) {
- $csrf_protection = false;
- }
-
if ($csrf_protection && !$this->input->is_cli_request()) {
// 2 functions for accessing config options, really?
$this->config->set_item('csrf_protection', true);