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

[livejournal] r19292: LJSUP-9105: Add http://www.rutv.ru to wh...

Committer: gariev
LJSUP-9105: Add http://www.rutv.ru to whitelist for video embedding
U   trunk/cgi-bin/LJ/EmbedModule.pm
Modified: trunk/cgi-bin/LJ/EmbedModule.pm
===================================================================
--- trunk/cgi-bin/LJ/EmbedModule.pm	2011-06-15 08:53:02 UTC (rev 19291)
+++ trunk/cgi-bin/LJ/EmbedModule.pm	2011-06-15 09:19:56 UTC (rev 19292)
@@ -319,6 +319,14 @@
                     $eleheight = $attr->{height}+0;
                     $height = $eleheight if $eleheight > $height;
                 }
+                if ($attr->{style}) {
+                    if ($attr->{style} =~ /\bwidth:\s*(\d+)px/) {
+                        $width = $1 if $1 > $width;
+                    }
+                    if ($attr->{style} =~ /\bheight:\s*(\d+)px/) {
+                        $height = $1 if $1 > $height;
+                    }
+                }
 
                 my $flashvars = $attr->{flashvars};
 

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