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

[livejournal] r23449: LJSUP-14494 (Save user's picture sizes f...

Committer: ailyin
LJSUP-14494 (Save user's picture sizes for pictures with width less than 900 px)
U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-12-10 13:28:19 UTC (rev 23448)
+++ trunk/cgi-bin/cleanhtml.pl	2012-12-11 07:14:19 UTC (rev 23449)
@@ -1109,7 +1109,7 @@
                     if ( my $maxwidth = $opts->{'maximgwidth'} ) {
                         my $width = $hash->{'width'};
                         if ( $width && $width !~ /\%$/ ) {
-                            $width =~ s/\D//g;
+                            $width =~ s/[^\d.]//g;
                             if ( int $width > $maxwidth ) {
                                 delete $hash->{'width'};
                                 delete $hash->{'height'};

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