mirror of
https://github.com/danog/phpseclib.git
synced 2025-01-22 13:01:59 +01:00
Merge branch '2.0'
This commit is contained in:
commit
ad03dcad1c
@ -2185,7 +2185,12 @@ class SFTP extends SSH2
|
|||||||
return false;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user