You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by qu...@apache.org on 2004/04/13 05:38:08 UTC

svn commit: rev 9987 - incubator/spamassassin/trunk/lib/Mail/SpamAssassin

Author: quinlan
Date: Mon Apr 12 20:38:07 2004
New Revision: 9987

Modified:
   incubator/spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm
Log:
guess size if we don't know it (should help HTML_IMAGE_RATIO a bit)


Modified: incubator/spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm
==============================================================================
--- incubator/spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm	(original)
+++ incubator/spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm	Mon Apr 12 20:38:07 2004
@@ -908,6 +908,9 @@
       $height = $1;
       $height *= 6 if (defined $2 && $2 eq "%");
     }
+    # guess size
+    $width = 200 if $width <= 0;
+    $height = 200 if $height <= 0;
     if ($width > 0 && $height > 0) {
       $area = $width * $height;
       $self->{html}{image_area} += $area;