When the drupal site is using SSL the remote Instagram images should also be loaded using SSL.

Instagram provides both http and https URLs for images, however drupagram only uses the http URLs. This will cause browser warning messages for SSL encrypted sites that load remote Instagram images because the remote images are not encrypted.

Comments

beanjammin’s picture

Status: Active » Needs review
StatusFileSize
new825 bytes

Here is a patch that checks if a site is encrypted, and if it is it rewrites the Instagram URL to also use encryption.

beanjammin’s picture

Updated patch - this one makes sure we've got the global $is_https and also it combines the patch from Locally cached files not used since the local/remote aspect of the file location is intertwined.

trentl’s picture

Tested the patch in #2 and it works. Was looking for this solution, thank you.

damienmckenna’s picture

Issue summary: View changes
Status: Needs review » Needs work

This needs to be rerolled.

damienmckenna’s picture

Version: 7.x-1.2 » 7.x-1.x-dev