SFTP: fix possible SFTPv3 error when rcving date only attributes

This commit is contained in:
terrafrost 2024-12-04 13:51:35 -06:00
parent fc5b4b332d
commit 573f4aaf02

View File

@ -3043,6 +3043,8 @@ class SFTP extends SSH2
*/
protected function parseAttributes(&$response)
{
$attr = [];
if ($this->version >= 4) {
list($flags, $attr['type']) = Strings::unpackSSH2('NC', $response);
} else {