aboutsummaryrefslogtreecommitdiffstats
path: root/includes/jobqueue/Job.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/jobqueue/Job.php')
-rw-r--r--includes/jobqueue/Job.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/jobqueue/Job.php b/includes/jobqueue/Job.php
index 00838031f3e6..05b14c2cf65d 100644
--- a/includes/jobqueue/Job.php
+++ b/includes/jobqueue/Job.php
@@ -401,6 +401,10 @@ abstract class Job implements RunnableJob {
$flatValue = "string(" . mb_strlen( $value ) . ")";
}
+ // Remove newline characters from the value, since
+ // newlines indicate new job lines in log files
+ $flatValue = preg_replace( '/\s+/', ' ', $flatValue );
+
$paramString .= "$key={$flatValue}";
}
}