From fcadd83b8762fae7e6da2eb11cc741ffa488043e Mon Sep 17 00:00:00 2001 From: Gumster Date: Mon, 11 Jun 2018 10:16:46 +0100 Subject: [PATCH] Update google_helper.php Google Maps call on line 330 uses http. I'm not sure this should ever be anyting else _but_ https but just in case, I've used is_https() to determine. Also not sure what line 331 does? --- fuel/modules/fuel/helpers/google_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuel/modules/fuel/helpers/google_helper.php b/fuel/modules/fuel/helpers/google_helper.php index 76bb56420..f66ffb1f1 100644 --- a/fuel/modules/fuel/helpers/google_helper.php +++ b/fuel/modules/fuel/helpers/google_helper.php @@ -327,7 +327,7 @@ function google_map_url($address, $params = array()) // set output $p['output'] = 'embed'; - $url = 'http://maps.google.com/maps?'.http_build_query($p, '', '&'); + $url = (is_https() ? 'https': 'http' ). '://maps.google.com/maps?'.http_build_query($p, '', '&'); $query_str = http_build_query($p, '', '&'); return $url; }