mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
Merge branch '2.x' into 2.1
This commit is contained in:
@@ -715,8 +715,10 @@ class elFinderVolumeFTP extends elFinderVolumeDriver {
|
||||
|
||||
if ($this->tmp) {
|
||||
$local = $this->tmp.DIRECTORY_SEPARATOR.md5($path);
|
||||
$fp = @fopen($local, $mode);
|
||||
$fp = @fopen($local, 'wb');
|
||||
if (ftp_fget($this->connect, $fp, $path, FTP_BINARY)) {
|
||||
fclose($fp);
|
||||
$fp = fopen($local, $mode);
|
||||
return $fp;
|
||||
}
|
||||
@fclose($fp);
|
||||
|
||||
Reference in New Issue
Block a user