Skip to content
Permalink
Browse files

Fix PHP warning

  • Loading branch information
respawner committed Feb 10, 2020
1 parent a6fcf93 commit a3089e82939b7be4223a2d63544685e6984f3abb
Showing with 4 additions and 4 deletions.
  1. +1 −3 auth/telnet.php
  2. +3 −1 routers/router.php
@@ -54,9 +54,7 @@ public function send_command($command) {
fputs($this->connection, $command."\r\n");

$data = '';
while(substr($data, -1) != '#' &&
substr($data, -1) != '>')
{
while (substr($data, -1) != '#' && substr($data, -1) != '>') {
$data .= fread($this->connection, 4096);
$data = rtrim($data, " ");
}
@@ -96,8 +96,10 @@ private function sanitize_output($output) {
}

protected function format_output($command, $output) {
$displayable = '';

if ($this->global_config['output']['show_command']) {
$displayable = '<p><kbd>Command: '.$command.'</kdb></p>';
$displayable .= '<p><kbd>Command: '.$command.'</kdb></p>';
}
$displayable .= '<pre class="pre-scrollable">'.$output.'</pre>';

0 comments on commit a3089e8

Please sign in to comment.
You can’t perform that action at this time.