This fixes empty src tags, and sets them to the blank image. IE causes
[squirrelmail.git] / functions / mime.php
index 6262a417430af7e70c6a37479efec6dea053af59..e442262256b5dbd20e8db0c5c3b769ae9d684025 100644 (file)
@@ -1451,6 +1451,18 @@ function sq_fixatts($tagname,
                 }
             }
         }
                 }
             }
         }
+
+
+        /**
+         * Replace empty src tags with the blank image.  src is only used
+         * for frames, images, and image inputs.  Doing a replace should
+         * not affect them working as should be, however it will stop
+         * IE from being kicked off when src for img tags are not set
+         */
+        if (($attname == 'src') && ($attvalue = '""')) {
+            $attary{$attname} = '"' . SM_PATH . 'images/blank.png"';
+        }
+
         /**
         * Turn cid: urls into http-friendly ones.
         */
         /**
         * Turn cid: urls into http-friendly ones.
         */