diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-03-03 21:19:31 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-03 21:19:31 +0000 |
commit | 9775cb69e2e3b8c3e2891ac22d01278c380912e8 (patch) | |
tree | af91a7ed7c23a30045da25eb874ad27bf71cd735 | |
parent | acf28e47cb7336b3f6878fb0df9d1a5c1dacd489 (diff) |
Fix indentation, remove unnnecessary csrf check.
-rw-r--r-- | modules/local_import/controllers/local_import.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/local_import/controllers/local_import.php b/modules/local_import/controllers/local_import.php index ee4a4f1a..8a3762ae 100644 --- a/modules/local_import/controllers/local_import.php +++ b/modules/local_import/controllers/local_import.php @@ -41,10 +41,8 @@ class Local_Import_Controller extends Controller { } public function children() { - access::verify_csrf(); - $path = $this->input->post("path"); - $path = implode("/", $this->input->post("path")); + $path = implode("/", $this->input->post("path")); if (!is_readable($path)) { kohana::show_404(); } @@ -66,7 +64,7 @@ class Local_Import_Controller extends Controller { $path = $this->input->post("path"); batch::operation("add", $parent); - + $source_path = $path[0]; for ($i = 1; $i < count($path); $i++) { // skip the first path $source_path .= "/$path[$i]"; |