]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Tweak trim whitespaces from joblog
authorMarcin Haba <marcin.haba@bacula.pl>
Mon, 22 Jun 2015 17:26:16 +0000 (19:26 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Mon, 22 Jun 2015 17:26:16 +0000 (19:26 +0200)
gui/baculum/protected/Pages/API/JobLog.php

index ba4ccbad75f118c6b41c0a0d2942eb9ddea6935c..e49729599b8fc9c910fe86bbfad6601c965077cf 100644 (file)
@@ -23,6 +23,7 @@ class JobLog extends BaculumAPI {
                $job = $this->getModule('job')->getJobById($jobid);
                if(!is_null($job)) {
                        $log = $this->getModule('joblog')->getLogByJobId($job->jobid);
+                       $log = array_map('trim', $log);
                        // Output may contain national characters.
                        $this->output = array_map('utf8_encode', $log);
                        $this->error = JobError::ERROR_NO_ERRORS;