From: Marcin Haba Date: Mon, 22 Jun 2015 17:26:16 +0000 (+0200) Subject: baculum: Tweak trim whitespaces from joblog X-Git-Tag: Release-7.2.0~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2344e14e3236ebf80d45650fb80dd3c5906f8f2b;p=bacula%2Fbacula baculum: Tweak trim whitespaces from joblog --- diff --git a/gui/baculum/protected/Pages/API/JobLog.php b/gui/baculum/protected/Pages/API/JobLog.php index ba4ccbad75..e49729599b 100644 --- a/gui/baculum/protected/Pages/API/JobLog.php +++ b/gui/baculum/protected/Pages/API/JobLog.php @@ -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;