wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r23210: LJSUP-14077: Clean big size parameters f...

Committer: wisest-owl
LJSUP-14077: Clean big size parameters for image in lj-cut

U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-10-29 12:30:03 UTC (rev 23209)
+++ trunk/cgi-bin/cleanhtml.pl	2012-10-29 12:33:33 UTC (rev 23210)
@@ -1132,7 +1132,9 @@
                             $img_bad = 1;
                         }
 
-                    } elsif ( my $maxwidth = $opts->{'maximgwidth'} ) {
+                    }
+
+                    if ( my $maxwidth = $opts->{'maximgwidth'} ) {
                         $img_bad = 0;
 
                         my $width = $hash->{'width'};
@@ -1143,6 +1145,8 @@
                                 delete $hash->{'height'};
                             }
                         }
+
+                        $img_bad = 1 if ( $opts->{'img_placeholders'} );
                     } else {
                         $img_bad = 0;
                     }

Tags: livejournal, pl, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments