Fix: use https if https is used
This commit is contained in:
parent
7167edb244
commit
ffbe2acc36
@ -1416,7 +1416,8 @@ class User extends CommonObject
|
|||||||
{
|
{
|
||||||
$urlwithouturlroot=preg_replace('/'.preg_quote(DOL_URL_ROOT,'/').'$/i','',$dolibarr_main_url_root);
|
$urlwithouturlroot=preg_replace('/'.preg_quote(DOL_URL_ROOT,'/').'$/i','',$dolibarr_main_url_root);
|
||||||
}
|
}
|
||||||
if (! empty($dolibarr_main_force_https)) $urlwithouturlroot=preg_replace('/http:/i','https:',$urlwithouturlroot);
|
if (! empty($dolibarr_main_force_https)
|
||||||
|
|| (! empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on')) $urlwithouturlroot=preg_replace('/http:/i','https:',$urlwithouturlroot);
|
||||||
|
|
||||||
// TODO Use outputlangs to translate messages
|
// TODO Use outputlangs to translate messages
|
||||||
if (! $changelater)
|
if (! $changelater)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user