Committer: amyshkin
LJSUP-10691: Image placeholders in commentsU trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl =================================================================== --- trunk/cgi-bin/cleanhtml.pl 2012-03-05 12:38:02 UTC (rev 21294) +++ trunk/cgi-bin/cleanhtml.pl 2012-03-05 13:15:58 UTC (rev 21295) @@ -1128,8 +1128,8 @@ # don't use placeholders for small images if ($opts->{'img_placeholders'}) { $img_bad = 1; } - if ( $opts->{'img_placeholders'} && defined $hash->{'width'} && $hash->{'width'} <= 140 ) { $img_bad = 0; } - if ( $opts->{'img_placeholders'} && defined $hash->{'height'} && $hash->{'height'} <= 37 ) { $img_bad = 0; } + if ( $opts->{'img_placeholders'} && defined $hash->{'width'} && $hash->{'width'} > 140 ) { $img_bad = 1; } + if ( $opts->{'img_placeholders'} && defined $hash->{'height'} && $hash->{'height'} > 37 ) { $img_bad = 1; } ## Option 'allowed_img_attrs' provides a list of allowed attributes if (my $allowed = $opts->{'allowed_img_attrs'}){