Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

[livejournal] r21305: LJSUP-11436: Bad view placeholder for im...

Committer: amyshkin
LJSUP-11436: Bad view placeholder for image
U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-03-06 09:21:40 UTC (rev 21304)
+++ trunk/cgi-bin/cleanhtml.pl	2012-03-06 09:50:18 UTC (rev 21305)
@@ -1132,16 +1132,11 @@
                             $img_bad = 1;
                         }
                         else {
-                            if ( $hash->{'width'} > 140 ) {
+                            if ( $hash->{'width'} > 140 && $hash->{'height'} > 37 ) {
                                 $img_bad = 1;
                             }
                             else {
-                                if ( $hash->{'height'} > 37 ) {
-                                    $img_bad = 1;
-                                }
-                                else {
-                                    $img_bad = 0;
-                                }
+                                $img_bad = 0;
                             }
                         }
                     }

Tags: amyshkin, livejournal, pl, zilogic
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