Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r23445: LJSUP-14532 (Placeholder should save fra...

Committer: ailyin
LJSUP-14532 (Placeholder should save fractional size of image)
U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-12-10 11:29:42 UTC (rev 23444)
+++ trunk/cgi-bin/cleanhtml.pl	2012-12-10 12:47:06 UTC (rev 23445)
@@ -1118,7 +1118,7 @@
                             }
                         }
 
-                        if ( exists $hash->{width} && $hash->{width} =~ /^\d+$/ && exists $hash->{height} && $hash->{height} =~ /^\d+$/ ) {
+                        if ( exists $hash->{width} && $hash->{width} =~ /^[\d.]+$/ && exists $hash->{height} && $hash->{height} =~ /^[\d.]+$/ ) {
                             if ( $hash->{'width'} > 140 && $hash->{'height'} > 37 ) {
                                 $img_bad = 1;
                             }

Tags: ailyin, andy, livejournal, pl
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