mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 00:59:48 +01:00
SSH2: fix PHP7.4 errors about accessing bool as string
This commit is contained in:
parent
8204273978
commit
915d1d8ca9
@ -3548,6 +3548,10 @@ class Net_SSH2
|
|||||||
|
|
||||||
// only called when we've already logged in
|
// only called when we've already logged in
|
||||||
if (($this->bitmap & NET_SSH2_MASK_CONNECTED) && $this->isAuthenticated()) {
|
if (($this->bitmap & NET_SSH2_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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user