|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-10-05 08:08 UTC] dk at ntec dot nl
Description: ------------ When an email contains an attachement with a content-disposition header, then the 'disposition-filename' variable doesn't contain the filename's extension. Example headers for an attachment: Content-Type: application/download Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=patch.exe The disposition-filename is set to patch instead of patch.exe PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 13:00:01 2025 UTC |
I believe the patch below should fix the issue: --- mailparse-2.1.1/php_mailparse_rfc822.c 2005-02-28 01:21:45.000000000 -0500 +++ mailparse-2.1.1/php_mailparse_rfc822.c 2007-06-21 15:07:18.000000000 -0400 @@ -76,7 +76,7 @@ 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 96, 64, 0, 192, 192, 64, 192, 192, - 64, 64, 192, 192, 64, 192, 64, 64, + 64, 64, 192, 192, 64, 192, 192, 64, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 64, 64, 64, 64, 64, 64, 64, 192, 192, 192, 192, 192, 192, 192,