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
I think I did that wrong. Let me add that as an attachment instead...