Committer: ailyin
LJSV-1246 (Embedded Google Maps lose user-created personalization)U trunk/cgi-bin/LJ/Maps.pm
Modified: trunk/cgi-bin/LJ/Maps.pm =================================================================== --- trunk/cgi-bin/LJ/Maps.pm 2010-11-08 10:20:36 UTC (rev 17644) +++ trunk/cgi-bin/LJ/Maps.pm 2010-11-08 10:41:10 UTC (rev 17645) @@ -20,7 +20,7 @@ my $width = LJ::ehtml($attr->{'width'}) || 500; my $height = LJ::ehtml($attr->{'height'}) || 350; if ($host =~ /^maps\.google\.\w+$/) { - $iframe_url = URI->new("http://$host/"); + $iframe_url = $uri->clone; $url_params{'output'} = 'embed'; $iframe_url->query_form(%url_params); } elsif ($host eq 'maps.yandex.ru') {