Skip to content

Commit

Permalink
Fix dev/core#4959 - Handle extra whitespace in scheduled job params
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Feb 7, 2024
1 parent 04d7f50 commit 780127c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/BAO/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public static function copy($id, $params = []) {
*/
public static function parseParameters(?string $parameters): array {
$result = ['version' => 3];
$lines = $parameters ? explode("\n", $parameters) : [];
$lines = trim($parameters) ? explode("\n", $parameters) : [];

foreach ($lines as $line) {
$pair = explode("=", $line);
Expand Down

0 comments on commit 780127c

Please sign in to comment.