Changing the sourceforge logo to be protocol relative.

* This allows the browser to resolve the URL against the protocol the user used, not what a reverse proxy used.
This commit is contained in:
jsdevel 2015-12-04 00:52:12 -07:00
parent c004a291d7
commit 0491916d90

View File

@ -2614,12 +2614,7 @@ function get_href($type,$extra_info='') {
case 'forum': case 'forum':
return sprintf('%s/mailarchive/forum.php?forum_name=%s',$sf,$forum_id); return sprintf('%s/mailarchive/forum.php?forum_name=%s',$sf,$forum_id);
case 'logo': case 'logo':
if (! isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) != 'on') return isset($_SESSION) && ! $_SESSION[APPCONFIG]->getValue('appearance','remoteurls') ? '' : sprintf('//sflogo.sourceforge.net/sflogo.php?group_id=%s&type=10',$group_id);
$proto = 'http';
else
$proto = 'https';
return isset($_SESSION) && ! $_SESSION[APPCONFIG]->getValue('appearance','remoteurls') ? '' : sprintf('%s://sflogo.sourceforge.net/sflogo.php?group_id=%s&type=10',$proto,$group_id);
case 'sf': case 'sf':
return sprintf('%s/projects/phpldapadmin',$sf); return sprintf('%s/projects/phpldapadmin',$sf);
case 'web': case 'web':