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

[livejournal] r21463: LJSUP-11564: Placeholder viewed incorrec...

Committer: amyshkin
LJSUP-11564: Placeholder viewed incorrect if user insert only i size
U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-03-20 05:55:39 UTC (rev 21462)
+++ trunk/cgi-bin/cleanhtml.pl	2012-03-20 06:46:08 UTC (rev 21463)
@@ -1170,6 +1170,14 @@
                                 $img_bad = 0;
                             }
                         }
+                        elsif ( exists $hash->{width} && ! exists $hash->{height} ) {
+                            delete $hash->{width};
+                            $img_bad = 1;
+                        }
+                        elsif ( exists $hash->{height} && ! exists $hash->{width} ) {
+                            delete $hash->{height};
+                            $img_bad = 1;
+                        }
                         else {
                             $img_bad = 1;
                         }

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