Skip to content

Commit

Permalink
Update google_helper.php
Browse files Browse the repository at this point in the history
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?
  • Loading branch information
Gumster authored Jun 11, 2018
1 parent 1f341a8 commit fcadd83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuel/modules/fuel/helpers/google_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fcadd83

Please sign in to comment.