File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
8
8
### Fixed
9
9
- Text/Html body fetched as attachment if subtype is null #34
10
10
- Potential header overwriting through header extensions #35
11
+ - Prevent empty attachments #37
11
12
12
13
### Added
13
14
- NaN
Original file line number Diff line number Diff line change @@ -475,7 +475,7 @@ protected function fetchAttachment($part) {
475
475
476
476
$ oAttachment = new Attachment ($ this , $ part );
477
477
478
- if ($ oAttachment ->getName () !== null ) {
478
+ if ($ oAttachment ->getName () !== null && $ oAttachment -> getSize () > 0 ) {
479
479
if ($ oAttachment ->getId () !== null ) {
480
480
$ this ->attachments ->put ($ oAttachment ->getId (), $ oAttachment );
481
481
} else {
You can’t perform that action at this time.
0 commit comments