This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Remove Gravatar or replace its URL with https:// (SSL issue)
#7
RE: Remove Gravatar or replace its URL with https:// (SSL issue)
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:
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

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by: mettacell


Messages In This Thread
RE: Remove Gravatar or replace its URL with https:// (SSL issue) - by apinto - 09-05-2015, 03:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
https without certificate redirects to panel iraqiboy90 10 22 ,760 02-28-2021, 11:20 AM
Last Post: iraqiboy90
Old issue on Daily Backup iraqiboy90 24 120 ,501 12-26-2020, 12:48 PM
Last Post: conglynina
Having both HTTP & HTTPS (Port 443 and Port 80) sites on a server dsmarter 14 46 ,316 08-22-2020, 02:49 PM
Last Post: kenzopoker1

Forum Jump:


Users browsing this thread: 2 Guest(s)