Version 20191104-1550

* fix setup crashing due to realpath() returning lowercase path on Windows
This commit is contained in:
jbostoen
2019-11-04 15:57:56 +01:00
committed by Pierre Goiffon
parent bf976e5b8f
commit 7c773991e7

View File

@@ -841,7 +841,7 @@ class utils
$sCurrentScript = realpath($_SERVER['SCRIPT_FILENAME']);
$sCurrentScript = str_replace('\\', '/', $sCurrentScript); // canonical path
$sAppRoot = str_replace('\\', '/', APPROOT); // canonical path
$sAppRoot = str_replace('\\', '/', realpath(APPROOT)); // canonical path
$sCurrentRelativePath = str_replace($sAppRoot, '', $sCurrentScript);
$sAppRootPos = strpos($sAbsoluteUrl, $sCurrentRelativePath);