1
0
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:
terrafrost 2016-11-20 18:05:02 -06:00
commit ad03dcad1c

View File

@ -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;
}