Closed (won't fix)
Project:
Facebook Like Button
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 May 2011 at 12:28 UTC
Updated:
20 Mar 2012 at 06:43 UTC
When using ISAPI on IIS, the PHP $_SERVER[HTTPS] variable is equal to the string "off" when accessing a site not made through the HTTPS protocol. See http://www.php.net/manual/en/reserved.variables.server.php
So to work on both ISS and Apache, line 75 in fblikebutton.module should be:
$http = (empty($_SERVER['HTTPS']) || ($_SERVER['HTTPS'] == 'off')) ? 'http://' : 'https://';
Comments
Comment #1
torotil commentedI think this is rather an issue with drupal core. Also you can override drupals calculations by setting a $base_url in your settings.php .