RE: Remove Gravatar or replace its URL with https:// (SSL issue)
09-05-2015, 03:29 AM
(This post was last modified: 09-05-2015, 03:29 AM by apinto.)
To edit the Avatar you can look into
https://github.com/sentora/sentora-core/....class.php
Around line 57 and the function is on line 107.
Actually it checks for https like I thought:
https://github.com/sentora/sentora-core/....class.php
Around line 57 and the function is on line 107.
Actually it checks for https like I thought:
PHP Code:
/**
* Detects the correct protocol to use when building the Gravatar image URL, this prevents SSL errors if the panel is being hosted over SSL.
* @return string The protocol prefix.
*/
private static function getCurrentProtocol()
{
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) {
return 'https://';
} else {
return 'http://';
}
}
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora
Graphic and Web Design. Development.
www.vanguardly.com
[Module] Mail Quota Count | Vagrant Box with Sentora
Graphic and Web Design. Development.
www.vanguardly.com