SFTP: realpath('') produced an error

This commit is contained in:
terrafrost 2020-05-01 21:34:44 -05:00
parent e29f5bda14
commit a07f5bc6a2

View File

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