mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-05 13:07:53 +00:00
SFTP: don't delete directory if $path is empty
This commit is contained in:
parent
df4ed58401
commit
b70cb87641
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user