From 7c773991e7e5c5eca07bf5e6bd47ec1e6039867e Mon Sep 17 00:00:00 2001 From: jbostoen <-> Date: Mon, 4 Nov 2019 15:57:56 +0100 Subject: [PATCH] Version 20191104-1550 * fix setup crashing due to realpath() returning lowercase path on Windows --- application/utils.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/utils.inc.php b/application/utils.inc.php index 934a7a874..e1a000c82 100644 --- a/application/utils.inc.php +++ b/application/utils.inc.php @@ -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);