SSH2: include <pre> tags in getLog result when SAPI isn't CLI

This commit is contained in:
terrafrost 2017-03-01 22:14:58 -06:00
parent 1bde98fc42
commit b8ceb96bd4

View File

@ -3984,8 +3984,8 @@ class Net_SSH2
return $this->message_number_log;
break;
case NET_SSH2_LOG_COMPLEX:
return $this->_format_log($this->message_log, $this->message_number_log);
break;
$log = $this->_format_log($this->message_log, $this->message_number_log);
return PHP_SAPI == 'cli' ? $log : '<pre>' . $log . '</pre>';
default:
return false;
}