mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-04 10:38:12 +01:00
SSH2: don't check for carriage return in version id string
This commit is contained in:
parent
719fb8d7a8
commit
c20b661a44
@ -1058,10 +1058,20 @@ class SSH2
|
|||||||
}
|
}
|
||||||
|
|
||||||
$line.= "$temp\n";
|
$line.= "$temp\n";
|
||||||
if (substr($line, -2) == "\r\n") {
|
|
||||||
|
// quoting RFC4253, "Implementers who wish to maintain
|
||||||
|
// compatibility with older, undocumented versions of this protocol may
|
||||||
|
// want to process the identification string without expecting the
|
||||||
|
// presence of the carriage return character for reasons described in
|
||||||
|
// Section 5 of this document."
|
||||||
|
|
||||||
|
//if (substr($line, -2) == "\r\n") {
|
||||||
|
// break;
|
||||||
|
//}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
$data.= $line;
|
$data.= $line;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user