From 5413361ce840bb8a93b1b987c9aca89dcc312311 Mon Sep 17 00:00:00 2001
From: Brandon Bergren <bdragon@rtk0.net>
Date: Wed, 5 Nov 2008 21:07:58 +0000
Subject: [PATCH] #330343, reported by fabio84 and also by epimeth in irc: Make
 script url valid again, I forgot that url() returns raw ampersands.

---
 gmap.module | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gmap.module b/gmap.module
index 05ac308..06241f2 100644
--- a/gmap.module
+++ b/gmap.module
@@ -259,7 +259,7 @@ drupal_add_js($gmap_path .'/js/poly.js');
     'key' => gmap_get_key(),
     'hl' => $language->language,
   );
-  drupal_set_html_head('<script src="'. url('http://maps.google.com/maps', array('query' => $query)) .'" type="text/javascript"></script>');
+  drupal_set_html_head('<script src="'. check_url(url('http://maps.google.com/maps', array('query' => $query))) .'" type="text/javascript"></script>');
 
   $gmap_initialized = TRUE;
 }
-- 
GitLab