fixed oversight of multiline utf8 headers being urlencoded

This commit is contained in:
Alexander Kozlov 2024-01-24 16:12:59 +03:00
parent 68cb173bc5
commit c3d6e9a11b

View File

@ -121,9 +121,9 @@ class Attachment
// name*1*=%D0%B8... // name*1*=%D0%B8...
// etc // etc
if (!empty($parameters['filename*'])) { if (!empty($parameters['filename*'])) {
$this->setFileName($parameters['filename*']); $this->setFileName(urldecode($parameters['filename*']));
} elseif (!empty($parameters['name*'])) { } elseif (!empty($parameters['name*'])) {
$this->setFileName($parameters['name*']); $this->setFileName(urldecode($parameters['name*']));
} }
if (!empty($parameters['filename'])) { if (!empty($parameters['filename'])) {