Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#488 Attached emails with blank style tags cause warnings

open
nobody
None
5
2014-03-28
2014-03-28
naptastic
No

cPanel internal case #52197

We found that, when an email with blank style tags is added as an attachment to another email, squirrelmail would emit a warning. This patch converts such malformed style tags to an empty array, which will be handled properly.

--- a/functions/mime.php
+++ b/functions/mime.php
@@ -1591,6 +1591,10 @@ function sq_fixatts($tagname,
$mailbox
){
$me = 'sq_fixatts';
+ // cpanel patch (case 52197): mime errors with style tags that have no attributes
+ if (!is_array($attary)){
+ $attary = Array();
+ }
while (list($attname, $attvalue) = each($attary)){
/**
* See if this attribute should be removed.

Thanks for your time,

David Nielson
Integration Developer, cPanel

Discussion

  • naptastic
    naptastic
    2014-03-28

    I think I did that wrong. Let me add that as an attachment instead...