[Tickets #380] Strange behaviour when 'forward' a multipart mail with VFSsql (Oracle)

bugs at bugs.horde.org bugs at bugs.horde.org
Tue Jul 13 08:34:53 PDT 2004


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

-Ticket 380
-Queue: IMP
-Added By: scalero at datadec.es

>From scalero at datadec.es (Tue Jul 13 08:34:53 2004):
Posible patch for function "_storeAttachment" in /horde/imp/lib/Compose.php

    /**
     * Stores the attachment data in its correct location.
     *
     * @access private
     *
     * @param object MIME_Part &$part     The MIME_Part of the attachment.
     * @param string $data                Either the filename of the
     *                                    attachment or, if $vfs_file is
     *                                    false, the attachment data.
     * @param optional boolean $vfs_file  If using VFS, is $data a
filename?
     */
    function _storeAttachment(&$part, $data, $vfs_file = true)
    {
        global $conf;

      + // Not add attachment if $data is empty 
      + if (empty($data)) {
      +     return PEAR::raiseError('No data provided');
      + }

        /* Store in VFS. */
        if ($conf['compose']['use_vfs']) {




http://bugs.horde.org/details.php?id=380

-- 


More information about the bugs mailing list