[VD:abstract,FTP] fix #1363 FTP connect from windows localhost to remote server

This commit is contained in:
nao-pon
2016-05-02 23:38:52 +09:00
parent 0b36c77406
commit 1a09f030d1
2 changed files with 11 additions and 7 deletions
+3 -3
View File
@@ -878,7 +878,7 @@ abstract class elFinderVolumeDriver {
// root attributes
$this->attributes[] = array(
'pattern' => '~^'.preg_quote(DIRECTORY_SEPARATOR).'$~',
'pattern' => '~^'.preg_quote($this->separator).'$~',
'locked' => true,
'hidden' => false
);
@@ -2826,7 +2826,7 @@ abstract class elFinderVolumeDriver {
$p = $this->relpathCE($path);
// if reqesting root dir $path will be empty, then assign '/' as we cannot leave it blank for crypt
if ($p === '') {
$p = DIRECTORY_SEPARATOR;
$p = $this->separator;
}
// TODO crypt path and return hash
@@ -2859,7 +2859,7 @@ abstract class elFinderVolumeDriver {
// TODO uncrypt hash and return path
$path = $this->uncrypt($h);
// append ROOT to path after it was cut in encode
return $this->abspathCE($path);//$this->root.($path == DIRECTORY_SEPARATOR ? '' : DIRECTORY_SEPARATOR.$path);
return $this->abspathCE($path);//$this->root.($path === $this->separator ? '' : $this->separator.$path);
}
//TODO: Add return statement here
}