mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-29 04:23:34 +00:00
SSH2: check response in exec()
This commit is contained in:
parent
63ec6e2055
commit
b440708a7b
@ -2085,6 +2085,11 @@ class Net_SSH2 {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ord($response[0]) != NET_SSH2_MSG_CHANNEL_SUCCESS) {
|
||||||
|
user_error('exec call refused');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->channel_status[NET_SSH2_CHANNEL_EXEC] = NET_SSH2_MSG_CHANNEL_DATA;
|
$this->channel_status[NET_SSH2_CHANNEL_EXEC] = NET_SSH2_MSG_CHANNEL_DATA;
|
||||||
|
|
||||||
if (!$block || $this->in_request_pty_exec) {
|
if (!$block || $this->in_request_pty_exec) {
|
||||||
|
Loading…
Reference in New Issue
Block a user