SFTP: update directory deletion check (#1059)

This commit is contained in:
terrafrost 2016-11-20 18:03:01 -06:00
parent 7cb66ea56e
commit a2d9622bf9

View File

@ -2237,7 +2237,12 @@ class Net_SFTP extends Net_SSH2
return false;
}
if (empty($path)) {
if (is_object($path)) {
// It's an object. Cast it as string before we check anything else.
$path = (string) $path;
}
if (!is_string($path) || $path == '') {
return false;
}