mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00:00
SSH2: include <pre> tags in getLog result when SAPI isn't CLI
This commit is contained in:
parent
1bde98fc42
commit
8abc0ee60c
@ -3982,10 +3982,9 @@ class Net_SSH2
|
|||||||
switch (NET_SSH2_LOGGING) {
|
switch (NET_SSH2_LOGGING) {
|
||||||
case NET_SSH2_LOG_SIMPLE:
|
case NET_SSH2_LOG_SIMPLE:
|
||||||
return $this->message_number_log;
|
return $this->message_number_log;
|
||||||
break;
|
|
||||||
case NET_SSH2_LOG_COMPLEX:
|
case NET_SSH2_LOG_COMPLEX:
|
||||||
return $this->_format_log($this->message_log, $this->message_number_log);
|
$log = $this->_format_log($this->message_log, $this->message_number_log);
|
||||||
break;
|
return PHP_SAPI == 'cli' ? $log : '<pre>' . $log . '</pre>';
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user