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

[livejournal] r17645: LJSV-1246 (Embedded Google Maps lose use...

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') {

Tags: andy, 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 

  • 2 comments