mirror of
https://github.com/danog/tgseclib.git
synced 2025-01-22 14:01:20 +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;
|
||||
}
|
||||
|
||||
if (empty($path)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$path = $this->_realpath($path);
|
||||
if ($path === false) {
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user