[Tickets #11390] Re: tnef: UTF-16 encoded mime type not recognized

bugs at horde.org bugs at horde.org
Fri Aug 31 17:27:06 UTC 2012


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/11390
------------------------------------------------------------------------------
  Ticket             | 11390
  Updated By         | andrey012 at gmail.com
  Summary            | tnef: UTF-16 encoded mime type not recognized
  Queue              | IMP
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
+New Attachment     | 11390.patch
------------------------------------------------------------------------------


andrey012 at gmail.com (2012-08-31 17:27) wrote:

Suggested fix:
              case self::MAPI_ATTACH_MIME_TAG:
                  /* Is this ever set, and what is format? */
                  $attachment_data[0]['type'] =  
preg_replace('/^(.*)\/.*/', '\1', $value);
+                $attachment_data[0]['type'] = str_replace("\0", '',  
$attachment_data[0]['type']);
                  $attachment_data[0]['subtype'] =  
preg_replace('/.*\/(.*)$/', '\1', $value);
                  $attachment_data[0]['subtype'] = str_replace("\0",  
'', $attachment_data[0]['subtype']);




andrey012 at gmail.com (2012-08-31 17:27) uploaded: 11390.patch

http://bugs.horde.org/h/services/download/?module=whups&actionID=download_file&file=11390.patch&ticket=11390&fn=%2F11390.patch





More information about the bugs mailing list