Merge branch '1.0' into 2.0

This commit is contained in:
terrafrost 2020-05-01 21:35:53 -05:00
commit 2a6fc5695c

View File

@ -719,7 +719,7 @@ class SFTP extends SSH2
} }
} }
if ($path[0] != '/') { if (!strlen($path) || $path[0] != '/') {
$path = $this->pwd . '/' . $path; $path = $this->pwd . '/' . $path;
} }