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);