[php] fix #3114 stream proxy function using the file cmd corresponds to range request

This commit is contained in:
nao-pon
2020-02-23 18:23:28 +09:00
parent c2c210c81c
commit 79a838be29
7 changed files with 90 additions and 8 deletions
+14 -3
View File
@@ -2181,8 +2181,13 @@ abstract class elFinderVolumeDriver
|| $file['mime'] == 'directory') {
return false;
}
return $this->fopenCE($this->decode($hash), 'rb');
// check extra option for network stream pointer
if (func_num_args() > 1) {
$opts = func_get_arg(1);
} else {
$opts = array();
}
return $this->fopenCE($this->decode($hash), 'rb', $opts);
}
/**
@@ -3766,7 +3771,13 @@ abstract class elFinderVolumeDriver
*/
protected function fopenCE($path, $mode = 'rb')
{
return (!$this->encoding) ? $this->_fopen($path, $mode) : $this->convEncOut($this->_fopen($this->convEncIn($path), $mode));
// check extra option for network stream pointer
if (func_num_args() > 2) {
$opts = func_get_arg(2);
} else {
$opts = array();
}
return (!$this->encoding) ? $this->_fopen($path, $mode, $opts) : $this->convEncOut($this->_fopen($this->convEncIn($path), $mode, $opts));
}
/**