mirror of
https://github.com/danog/phpseclib.git
synced 2025-01-22 04:51:19 +01:00
Merge branch '2.0'
This commit is contained in:
commit
ad03dcad1c
@ -2185,7 +2185,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…
x
Reference in New Issue
Block a user