Skip to content

Commit

Permalink
fixup! Use recurrence instance to build iMip email
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Jul 11, 2023
1 parent dffe90d commit 6e17dbb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,13 @@ public function schedule(Message $iTipMessage) {
return;
}

$mailto = $iTipMessage->recipient;
if($mailto === null) {

Check notice

Code scanning / Psalm

DocblockTypeContradiction Note

string does not contain null
return;
}

// Strip off mailto:
$recipient = substr($iTipMessage->recipient, 7);
$recipient = substr($mailto, 7);
if (!$this->mailer->validateMailAddress($recipient)) {
// Nothing to send if the recipient doesn't have a valid email address
$iTipMessage->scheduleStatus = '5.0; EMail delivery failed';
Expand Down

0 comments on commit 6e17dbb

Please sign in to comment.