Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[ljcom] r10252: LJSUP-8218: cleanhtml improvements

Committer: gariev
LJSUP-8218: cleanhtml improvements
U   trunk/cgi-bin/ljcom.pl
Modified: trunk/cgi-bin/ljcom.pl
===================================================================
--- trunk/cgi-bin/ljcom.pl	2011-03-16 10:45:35 UTC (rev 10251)
+++ trunk/cgi-bin/ljcom.pl	2011-03-17 07:32:15 UTC (rev 10252)
@@ -1625,7 +1625,7 @@
         $src = $attr->{src}
             if exists $attr->{src} and defined $attr->{src};
     }
-
+    
     # Fake a few tokens from the html cleaner to pass into our next hook.
     my @tags = (
                 ['S', 'lj-template', {
@@ -1733,6 +1733,8 @@
 
     $width  =~ s/px$//;
     $height =~ s/px$//;
+    $width  = 960 if $width  > 960;
+    $height = 750 if $height > 750;
 
     $width        = $width        =~ /^\d+$/       ? $width        : $LJ::WHITELIST_VIDEO_HOSTS{$host}->{width}        || 320;
     $height       = $height       =~ /^\d+$/       ? $height       : $LJ::WHITELIST_VIDEO_HOSTS{$host}->{height}       || 240;

Tags: gariev, ljcom, 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