Skip to content

Commit 6c54aa9

Browse files
committed
fix: CID check in Email class
1 parent 627235c commit 6c54aa9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

system/Email/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ protected function appendAttachments(&$body, $boundary, $multipart = null)
13081308
. 'Content-Type: ' . $attachment['type'] . '; name="' . $name . '"' . $this->newline
13091309
. 'Content-Disposition: ' . $attachment['disposition'] . ';' . $this->newline
13101310
. 'Content-Transfer-Encoding: base64' . $this->newline
1311-
. ($attachment['cid'] === '' ? '' : 'Content-ID: <' . $attachment['cid'] . '>' . $this->newline)
1311+
. (isset($attachment['cid']) && $attachment['cid'] !== '' ? 'Content-ID: <' . $attachment['cid'] . '>' . $this->newline : '')
13121312
. $this->newline
13131313
. $attachment['content'] . $this->newline;
13141314
}

user_guide_src/source/changelogs/v4.6.3.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ Deprecations
3030
Bugs Fixed
3131
**********
3232

33+
- **Email:** Fixed a bug with CID check when building email attachments.
34+
3335
See the repo's
3436
`CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md>`_
3537
for a complete list of bugs fixed.

0 commit comments

Comments
 (0)