Home » Mail » Mail_Mime » Bug #4696
addAttachment crash
Details
| Submitted | 2005-06-28 13:27 UTC |
|---|---|
| From | adax2000 at tlen dot pl |
| Assigned | cipri |
| Status | Closed |
| Package | Mail_Mime |
| PHP Version | 4.3.11 |
| OS | linux |
| Roadmaps | 1.4.0, 1.4.0a1 |
Comments
[2005-06-28 13:27 UTC] adax2000 at tlen dot pl
Description:
------------
wenn magic_quotes_runtime are enabled attachment will be not properly encoded to base64, due to this email will have an atachment, but destroyed
i described this problem already in php bugs #33494
so look there for futhere information
the lines below should remove this problem
Expected result:
----------------
mime.php line 295
if ($old=get_magic_quotes_runtime())
{ set_magic_qutoes_runtime(0); }
$cont = fread($fd, filesize($file_name));
if ($old) { set_magic_qutoes_runtime($old); }
Actual result:
--------------
mime.php line 295
$cont = fread($fd, filesize($file_name));