mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-02 09:38:06 +01: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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($path)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$path = $this->_realpath($path);
|
$path = $this->_realpath($path);
|
||||||
if ($path === false) {
|
if ($path === false) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user