Update dav.php

This commit is contained in:
Frédéric FRANCE 2019-10-02 18:49:05 +02:00 committed by GitHub
parent eb40d51dda
commit fe0f190209
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,6 +168,9 @@ print "<br>";
// Define $urlwithroot
$urlwithouturlroot=preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
$urlwithroot=$urlwithouturlroot.DOL_URL_ROOT; // This is to use external domain name found into config file
if ($_SERVER['HTTPS'] == 'on' || $_SERVER['REQUEST_SCHEME'] == 'https') {
$urlwithroot = str_replace('http://', 'https://', $urlwithroot);
}
//$urlwithroot=DOL_MAIN_URL_ROOT; // This is to use same domain name than current