mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 03:27:31 +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)
|
protected function parseAttributes(&$response)
|
||||||
{
|
{
|
||||||
|
$attr = [];
|
||||||
|
|
||||||
if ($this->version >= 4) {
|
if ($this->version >= 4) {
|
||||||
list($flags, $attr['type']) = Strings::unpackSSH2('NC', $response);
|
list($flags, $attr['type']) = Strings::unpackSSH2('NC', $response);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user