1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-12-02 17:48:00 +01:00

SSH2: update a few function calls to work with renamed methods

This commit is contained in:
terrafrost 2017-05-28 09:44:38 -05:00
parent 2d226b057c
commit a312a1d4f0

View File

@ -3320,7 +3320,7 @@ class SSH2
public function disablePTY() public function disablePTY()
{ {
if ($this->in_request_pty_exec) { if ($this->in_request_pty_exec) {
$this->_close_channel(self::CHANNEL_EXEC); $this->close_channel(self::CHANNEL_EXEC);
$this->in_request_pty_exec = false; $this->in_request_pty_exec = false;
} }
$this->request_pty = false; $this->request_pty = false;
@ -3874,7 +3874,7 @@ class SSH2
case self::LOG_SIMPLE: case self::LOG_SIMPLE:
return $this->message_number_log; return $this->message_number_log;
case self::LOG_COMPLEX: case self::LOG_COMPLEX:
$log = $this->_format_log($this->message_log, $this->message_number_log); $log = $this->format_log($this->message_log, $this->message_number_log);
return PHP_SAPI == 'cli' ? $log : '<pre>' . $log . '</pre>'; return PHP_SAPI == 'cli' ? $log : '<pre>' . $log . '</pre>';
default: default:
return false; return false;