From e9caa24bd12e256f814ea4ffcf8bfdae9816b4da Mon Sep 17 00:00:00 2001 From: daeks Date: Thu, 11 Apr 2013 20:57:59 +0200 Subject: [PATCH] fixes copy function --- components/filemanager/class.filemanager.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/filemanager/class.filemanager.php b/components/filemanager/class.filemanager.php index f3c5cd7..8b114a9 100644 --- a/components/filemanager/class.filemanager.php +++ b/components/filemanager/class.filemanager.php @@ -79,7 +79,11 @@ class Filemanager extends Common { // Duplicate if(!empty($get['destination'])){ $get['destination'] = Filemanager::cleanPath( $get['destination'] ); - $this->destination = $this->root . $get['destination']; + if($this->isAbsPath($get['path'])) { + $this->destination = $get['destination']; + } else { + $this->destination = $this->root . $get['destination']; + } } }