mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-05-29 06:30:51 +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