]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Ticket #2330: fix Google Maps provider for Mapstraction plugin
authorBrion Vibber <brion@pobox.com>
Tue, 1 Jun 2010 18:29:01 +0000 (18:29 +0000)
committerBrion Vibber <brion@pobox.com>
Tue, 1 Jun 2010 18:29:01 +0000 (18:29 +0000)
plugins/Mapstraction/MapstractionPlugin.php

index 868933fd432461a887c0697c1d1681a1ab6d4a6e..e7240a64497adbe749b48c35cb0c99f2dc6bd923 100644 (file)
@@ -125,8 +125,8 @@ class MapstractionPlugin extends Plugin
             $action->script('http://tile.cloudmade.com/wml/0.2/web-maps-lite.js');
             break;
         case 'google':
-            $action->script(sprintf('http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=%s',
-                                    $this->apikey));
+            $action->script(sprintf('http://maps.google.com/maps?file=api&v=2&sensor=false&key=%s',
+                                    urlencode($this->apikey)));
             break;
         case 'microsoft':
             $action->script('http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6');
@@ -137,7 +137,7 @@ class MapstractionPlugin extends Plugin
             break;
         case 'yahoo':
             $action->script(sprintf('http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=%s',
-                                    $this->apikey));
+                                    urlencode($this->apikey)));
             break;
         case 'geocommons': // don't support this yet
         default: