mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 14:08:46 +02:00
- Fixing Trac #188... new flag https_hyperlinks with a slightly different meaning: produce https hyperlinks even if the current page is NOT https.
SVN:trunk[671]
This commit is contained in:
@@ -185,9 +185,10 @@ class utils
|
||||
{
|
||||
// Build an absolute URL to this page on this server/port
|
||||
$sServerName = $_SERVER['SERVER_NAME'];
|
||||
if (self::GetConfig()->GetSecureConnectionRequired())
|
||||
if (self::GetConfig()->GetSecureConnectionRequired() || self::GetConfig()->GetHttpsHyperlinks())
|
||||
{
|
||||
// If a secure connection is required, then any URL must start with https !
|
||||
// If a secure connection is required, or if the URL is requested to start with HTTPS
|
||||
// then any URL must start with https !
|
||||
$bForceHTTPS = true;
|
||||
}
|
||||
if ($bForceHTTPS)
|
||||
|
||||
Reference in New Issue
Block a user