Merge branch '1.0' into 2.0

This commit is contained in:
terrafrost 2021-05-18 22:02:39 -05:00
commit fe6a84a58b

View File

@ -3532,6 +3532,10 @@ class SSH2
// only called when we've already logged in // only called when we've already logged in
if (($this->bitmap & self::MASK_CONNECTED) && $this->isAuthenticated()) { if (($this->bitmap & self::MASK_CONNECTED) && $this->isAuthenticated()) {
if (is_bool($payload)) {
return $payload;
}
switch (ord($payload[0])) { switch (ord($payload[0])) {
case NET_SSH2_MSG_CHANNEL_REQUEST: case NET_SSH2_MSG_CHANNEL_REQUEST:
if (strlen($payload) == 31) { if (strlen($payload) == 31) {