mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-25 11:20:03 +00:00
SFTP: fix possible SFTPv3 error when rcving date only attributes
This commit is contained in:
parent
fc5b4b332d
commit
573f4aaf02
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user