diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index affabedc..36de2fad 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -2180,6 +2180,10 @@ class SFTP extends SSH2 return false; } + if (empty($path)) { + return false; + } + $path = $this->_realpath($path); if ($path === false) { return false;