[dev] [PATCH] IMP h3-4.0.3-rc1 and attachments as links

Xavier Montagutelli xavier.montagutelli at unilim.fr
Thu Apr 7 08:14:22 PDT 2005


We have tried to send attchments as links with imp-h3-4.0.3-rc1

With some files (eg .pdf), we have an error and the web page shows the following
(some errors messages and the PDF file inline) :

 Notice: Undefined variable: file in /var/www/html/horde/imp/attachment.php on
line 66
  Warning: Cannot modify header information - headers already sent by (output
started at /var/www/html/horde/imp/attachment.php:66) in
/var/www/html/horde/lib/Horde/Browser.php on line 956
  Warning: Cannot modify header information - headers already sent by (output
started at /var/www/html/horde/imp/attachment.php:66) in
/var/www/html/horde/lib/Horde/Browser.php on line 964
 %PDF-1.4 %âãÏÓ .....

The attached patch solves the problem, but I don't know if I did it the "right"
way.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the dev mailing list