AddToAny detects by default whether the current protocol is HTTP or HTTPS. We have a configuration where our load balancer automatically converts all HTTP requests to HTTPS. However, in that situation it looks to Drupal as if everything was still HTTP and the AddToAny script loader will auto-detect that and call its script with HTTP rather than HTTPS.

I've created a patch that adds radio btns to the Settings form where the admin can leave AddToAny in auto-detect mode, or force the script loader to use either HTTP or HTTPS protocols, and a patch to the addtoany.module that changes the protocol for the script loader based on settings.

I don't have to ability (yet) to upload .git patches, so the attached zip contains updated copies of addtoany.module and addtoany.admin.inc.

Cheers!
-martin.

CommentFileSizeAuthor
addtoany.patch.zip4.56 KBmlanser
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kenorb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.