From 932737f8701de3dedb08dabdeb3cb2bf7deeab10 Mon Sep 17 00:00:00 2001 From: nao-pon Date: Fri, 2 Dec 2016 23:49:51 +0900 Subject: [PATCH] [VD:abstract] fix #1783 Illegal duplicate data as bind in duplicate command --- php/elFinderVolumeDriver.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/php/elFinderVolumeDriver.class.php b/php/elFinderVolumeDriver.class.php index 869cc0b944..000e0cc099 100644 --- a/php/elFinderVolumeDriver.class.php +++ b/php/elFinderVolumeDriver.class.php @@ -4180,7 +4180,9 @@ protected function copy($src, $dst, $name) { if ($res = $this->convEncOut($this->_copy($this->convEncIn($src), $this->convEncIn($dst), $this->convEncIn($name)))) { $path = is_string($res)? $res : $this->joinPathCE($dst, $name); $this->clearcache(); - $this->added[] = $this->stat($path); + if ($this->ARGS['cmd'] !== 'duplicate') { + $this->added[] = $this->stat($path); + } return $path; }