From b89c488f4338d74f0fec05be29c0deae2dc50b97 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Thu, 22 Aug 2019 05:01:33 -0500 Subject: [PATCH] SFTP: unpack() -> unpackSSH2() --- phpseclib/Net/SFTP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 3ea0ce5f..b894cc16 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -2752,7 +2752,7 @@ class SFTP extends SSH2 list($attr['atime'], $attr['mtime']) = Strings::unpackSSH2('NN', $response); break; case NET_SFTP_ATTR_EXTENDED: // 0x80000000 - list($count) = Strings::unpack('N', $response); + list($count) = Strings::unpackSSH2('N', $response); for ($i = 0; $i < $count; $i++) { list($key, $value) = Strings::unpackSSH2('ss', $response); $attr[$key] = $value;