We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d0377e commit 141dc10Copy full SHA for 141dc10
src/Attachment.php
@@ -236,6 +236,10 @@ protected function fetch(): void {
236
$this->filename = $this->decodeName($filename);
237
}
238
239
+ if (($description = $this->part->description) !== null) {
240
+ $this->description = $this->part->getHeader()->decode($description);
241
+ }
242
+
243
if (($name = $this->part->name) !== null) {
244
$this->name = $this->decodeName($name);
245
@@ -248,7 +252,6 @@ protected function fetch(): void {
248
252
if (!$this->name) {
249
253
$this->name = $this->part->description;
250
254
251
- $this->description = $this->part->description;
255
} else if (!$this->name) {
256
$this->name = $this->part->subtype;
257
0 commit comments