diff options
-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]"; |