mirror of
https://github.com/Studio-42/elFinder.git
synced 2026-06-19 07:37:19 +00:00
[VD:FTP] fix #3172 to support filename starting with " "
This commit is contained in:
@@ -384,7 +384,10 @@ class elFinderVolumeFTP extends elFinderVolumeDriver
|
||||
$lastyear = date('Y') - 1;
|
||||
}
|
||||
|
||||
$info = preg_split("/\s+/", $raw, 9);
|
||||
$info = preg_split("/\s+/", $raw, 8);
|
||||
if (isset($info[7])) {
|
||||
list($info[7], $info[8]) = explode(' ', $info[7], 2);
|
||||
}
|
||||
$stat = array();
|
||||
|
||||
if (!isset($this->ftpOsUnix)) {
|
||||
@@ -398,9 +401,6 @@ class elFinderVolumeFTP extends elFinderVolumeDriver
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($info[8] === '') {
|
||||
$info[8] = preg_replace('/^.+?\s(\s*)$/', '$1', $raw);
|
||||
}
|
||||
$name = $info[8];
|
||||
|
||||
if (preg_match('|(.+)\-\>(.+)|', $name, $m)) {
|
||||
|
||||
Reference in New Issue
Block a user