mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-09 15:20:58 +00:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
27a6b6362a
@ -2180,7 +2180,12 @@ class SFTP extends 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user