SFTP: don't delete directory if $path is empty

This commit is contained in:
terrafrost 2016-11-19 20:39:05 -06:00
parent df4ed58401
commit b70cb87641

View File

@ -2237,6 +2237,10 @@ class Net_SFTP extends Net_SSH2
return false;
}
if (empty($path)) {
return false;
}
$path = $this->_realpath($path);
if ($path === false) {
return false;