If we install this module in a SSL server, when prints a chart, some browsers shows a security warning.

This is because the image of Flash alternative content is taken from a non-SSL server. To fix it would have to modify the line 212 of file ofc_api.module:

if (empty($_SERVER['HTTPS'])) {
  $url_image_alternative = 'http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif';
} else {
  $url_image_alternative = 'https://www.adobe.com/images/shared/download_buttons/get_flash_player.gif';
}
// Alternative content to display when Flash player is not installed
$alt_content = l(theme_image($url_image_alternative, 'Get Adobe Flash player', 'Get Adobe Flash player', null, false), 'http://www.adobe.com/go/getflashplayer', array('html' => TRUE));

Comments

Anzel’s picture

Status: Active » Patch (to be ported)
FranciX’s picture

I have the same problem.

Thanks to solve it!

kong’s picture

Status: Patch (to be ported) » Fixed

Thanks for the code Anzel.

Fixed in 6.x-1.2 (with a little different approach), haven't tested but it should work :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.