diff --git a/src/job.php b/src/job.php index aa944a9..f047ff1 100644 --- a/src/job.php +++ b/src/job.php @@ -28,8 +28,8 @@ $apps = new Application($appInfo['app_id']); $instanceName = $appInfo['app_name']; -$errorTerminal = new \Ease\Html\DivTag(nl2br(str_replace('background-color: black; ', '', (new \SensioLabs\AnsiConverter\AnsiToHtmlConverter())->convert((string) $jobber->getDataValue('stderr')))), ['style' => 'background: #8B0000; font-family: monospace;']); -$stdTerminal = new \Ease\Html\DivTag(nl2br(str_replace('background-color: black; ', '', (new \SensioLabs\AnsiConverter\AnsiToHtmlConverter())->convert((string) $jobber->getDataValue('stdout')))), ['style' => 'background: #000000; font-family: monospace;']); +$errorTerminal = new \Ease\Html\DivTag(nl2br(str_replace('background-color: black; ', '', (new \SensioLabs\AnsiConverter\AnsiToHtmlConverter())->convert((string) $jobber->getDataValue('stderr')))), ['style' => 'background: #ffb3b3; font-family: monospace;']); +$stdTerminal = new \Ease\Html\DivTag(nl2br(str_replace('background-color: black; ', '', (new \SensioLabs\AnsiConverter\AnsiToHtmlConverter())->convert((string) $jobber->getDataValue('stdout')))), ['style' => 'background: #808080; font-family: monospace;']); $outputTabs = new \Ease\TWB4\Tabs(); $outputTabs->addTab(_('Output'), [$stdTerminal, \strlen($jobber->getOutput()) ? new \Ease\TWB4\LinkButton('joboutput.php?id='.$jobID.'&mode=std', _('Download'), 'secondary btn-block') : _('No output')]); diff --git a/src/joboutput.php b/src/joboutput.php index 4ed2212..2a4beb9 100644 --- a/src/joboutput.php +++ b/src/joboutput.php @@ -33,4 +33,4 @@ header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); header('Content-Length: '.mb_strlen($output)); -echo $output; +echo stripslashes($output);