Closed (fixed)
Project:
Gigya - Social Infrastructure
Version:
6.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2010 at 00:21 UTC
Updated:
17 Apr 2010 at 19:40 UTC
Right now Gigya is always using http://cdn.gigya.com as the protocol for gigya javascript that's added to the head of the page. On browsers like IE8 this can cause a warning about insecure content. I fixed this by modifying the url to use an SSL connection when necessary:
$uri_prefix = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
drupal_set_html_head('<script src="'. check_url(url("$uri_prefix://cdn.gigya.com/JS/gigya.js?services=socialize"))
...
Comments
Comment #1
jrust commentedI should mention that this doesn't completely resolve the problem, because IE8 reports that it has "blocked the website from displaying content with security certificate errors." But hopefully Gigya will renew their SSL certificate soon.
Comment #2
EvanDonovan commentedI assume this is still the case in the current version. Perhaps we should send itamar@gigya-inc.com or support@gigya-inc.com an email in re: the SSL certificate issue.
Comment #3
EvanDonovan commentedAs per my conversation with Gigya tech support today, the URL should be cdns.gigya.com.
Since we use SSL on some pages also, I will try to roll a patch for this soon.
Comment #4
azinck commentedcommitted to dev
Comment #5
azinck commentedComment #6
EvanDonovan commentedazinck: Thanks!