mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 03:27:31 +00:00
Merge branch '2.0' into 3.0
This commit is contained in:
commit
70416554a4
@ -1417,21 +1417,13 @@ class SSH2
|
|||||||
if ($temp === false) {
|
if ($temp === false) {
|
||||||
throw new \RuntimeException('Error reading from socket');
|
throw new \RuntimeException('Error reading from socket');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$line .= $temp;
|
||||||
if (strlen($temp) == 255) {
|
if (strlen($temp) == 255) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$line .= "$temp\n";
|
$line .= "\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;
|
||||||
}
|
}
|
||||||
@ -1450,7 +1442,7 @@ class SSH2
|
|||||||
|
|
||||||
$extra = $matches[1];
|
$extra = $matches[1];
|
||||||
|
|
||||||
$this->server_identifier = trim($temp, "\r\n");
|
$this->server_identifier = trim($data, "\r\n");
|
||||||
if (strlen($extra)) {
|
if (strlen($extra)) {
|
||||||
$this->errors[] = $data;
|
$this->errors[] = $data;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user