Committer: gariev
LJSUP-9105: Add http://www.rutv.ru to whitelist for video embeddingU 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};