Committer: amyshkin
LJSUP-11564: Placeholder viewed incorrect if user insert only i sizeU 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; }