Skip to content

Commit f05b5c8

Browse files
fixup! fix: normalize email addresses before using them
Signed-off-by: SebastianKrupinski <[email protected]>
1 parent dd0a780 commit f05b5c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/BackgroundJob/RepairRecipiants.php renamed to lib/BackgroundJob/RepairRecipients.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ protected function run($argument): void {
4444
foreach ($recipients as $recipient) {
4545
$id = $recipient['id'];
4646
$email = $recipient['email'];
47-
$email = str_replace('\'', '', $email);
47+
$email = trim(str_replace('\'', '', $email));
4848
$update->setParameter('id', $id, IQueryBuilder::PARAM_STR);
4949
$update->setParameter('email', $email, IQueryBuilder::PARAM_STR);
5050
$update->executeStatement();
5151
}
5252
// remove job depending on the result
53-
if ($recipients === null || $recipient === []) {
53+
if ($recipients === []) {
5454
$this->jobService->remove(RepairRecipients::class);
5555
}
5656
}

0 commit comments

Comments
 (0)