From c3d6e9a11b4bcf7f24be5bb308dc38aba6862444 Mon Sep 17 00:00:00 2001 From: Alexander Kozlov Date: Wed, 24 Jan 2024 16:12:59 +0300 Subject: [PATCH] fixed oversight of multiline utf8 headers being urlencoded --- src/Fetch/Attachment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Fetch/Attachment.php b/src/Fetch/Attachment.php index 51c20fa..997badc 100644 --- a/src/Fetch/Attachment.php +++ b/src/Fetch/Attachment.php @@ -121,9 +121,9 @@ class Attachment // name*1*=%D0%B8... // etc if (!empty($parameters['filename*'])) { - $this->setFileName($parameters['filename*']); + $this->setFileName(urldecode($parameters['filename*'])); } elseif (!empty($parameters['name*'])) { - $this->setFileName($parameters['name*']); + $this->setFileName(urldecode($parameters['name*'])); } if (!empty($parameters['filename'])) {