Skip to content

Commit

Permalink
regression fix several elFinder upload/paste issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dleffler committed Feb 17, 2017
1 parent 0d61249 commit 5c99deb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ protected function _remove_expFile($oldpath)
* @return array|false
* @author Dave Leffler
*/
public function paste($volume, $src, $dst, $rmSrc = false)
public function paste($volume, $src, $dst, $rmSrc = false, $hashes = array())
{
$this->_move_expFile($src, $dst);
$result = parent::paste($volume, $src, $dst, $rmSrc);
$result = parent::paste($volume, $src, $dst, $rmSrc, $hashes);
$this->_remove_expFile($src); // remove the duplicate expFile record pointing to old location

$opath = $this->decode($src);
Expand Down
7 changes: 4 additions & 3 deletions framework/modules/file/connector/elfinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
include BASE . 'external/elFinder/php/elFinderConnector.class.php';
include BASE . 'external/elFinder/php/elFinder.class.php';

include BASE . 'external/elFinder/php/elFinderPlugin.php';
//include BASE . 'external/elFinder/php/libs/GdBmp.php'; // will also autoload if needed
//include BASE . 'external/elFinder/php/plugins/AutoResize/plugin.php'; // will also autoload if needed
//include BASE . 'external/elFinder/php/plugins/AutoRotate/plugin.php';
Expand Down Expand Up @@ -458,15 +459,15 @@ function validName($name)
'application/x-zip',
'application/x-zip-compressed',
'application/zip',
'audio/*',
'image/*',
'audio',
'image',
'multipart/x-gzip',
'multipart/x-zip',
'text/plain',
'text/rtf',
'text/richtext',
'text/xml',
'video/*',
'video',
'text/csv'
),
'uploadDeny' => array('application/x-shockwave-flash'),
Expand Down

0 comments on commit 5c99deb

Please sign in to comment.