From 2344e14e3236ebf80d45650fb80dd3c5906f8f2b Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Mon, 22 Jun 2015 19:26:16 +0200 Subject: [PATCH] baculum: Tweak trim whitespaces from joblog --- gui/baculum/protected/Pages/API/JobLog.php | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5