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 d9d8159
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Core/BAO/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public static function copy($id, $params = []) {
* @throws CRM_Core_Exception
*/
public static function parseParameters(?string $parameters): array {
$parameters = trim($parameters ?? '');
$result = ['version' => 3];
$lines = $parameters ? explode("\n", $parameters) : [];

Expand Down

0 comments on commit d9d8159

Please sign in to comment.