From 9775cb69e2e3b8c3e2891ac22d01278c380912e8 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 3 Mar 2009 21:19:31 +0000 Subject: Fix indentation, remove unnnecessary csrf check. --- modules/local_import/controllers/local_import.php | 6 ++---- 1 file 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]"; -- cgit v1.2.3