When using gmaps over SSL I get a problem in some browsers if I don't accept a certificate.

[blocked] The page at https://example.com/my-page ran insecure content from http://maps.google.com/maps/api/js?v=3.2&language=es&sensor=false.
Uncaught ReferenceError: google is not defined 

This is fixed by using HTTPS when including the API file.

Comments

penyaskito’s picture

Status: Active » Needs review
StatusFileSize
new1.17 KB

Patch against today 6.x-1.x HEAD.

joestewart’s picture

Status: Needs review » Reviewed & tested by the community

patch worked as described for me.

Maintainers changes status if this is not correct.

podarok’s picture

Status: Reviewed & tested by the community » Needs work
 git apply --check 1782066-gmaps-script-https-1.patch
warning: gmap.module has type 100755, expected 100644
error: patch failed: gmap.module:325
error: gmap.module: patch does not apply

didn`t apply to current 6.x-1.x
need reroll

gnindl’s picture

Issue summary: View changes
StatusFileSize
new842 bytes

Ported and applied patch to module version 2.0-beta5

rattusrattus’s picture

StatusFileSize
new680 bytes

Here's an alternative approach to provide SSL support by not including a protocol at all