From 0491916d902aee59f3803191626c06ec6f29aa35 Mon Sep 17 00:00:00 2001 From: jsdevel Date: Fri, 4 Dec 2015 00:52:12 -0700 Subject: [PATCH] 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. --- lib/functions.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/functions.php b/lib/functions.php index d31e0c1..96311ba 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -2614,12 +2614,7 @@ function get_href($type,$extra_info='') { case 'forum': return sprintf('%s/mailarchive/forum.php?forum_name=%s',$sf,$forum_id); case 'logo': - if (! isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) != 'on') - $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); + return isset($_SESSION) && ! $_SESSION[APPCONFIG]->getValue('appearance','remoteurls') ? '' : sprintf('//sflogo.sourceforge.net/sflogo.php?group_id=%s&type=10',$group_id); case 'sf': return sprintf('%s/projects/phpldapadmin',$sf); case 'web':