mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 18:18:46 +02:00
🐛 fix regression introduced by the PR n°98
the realpath removed the trailing / wich is required
This commit is contained in:
@@ -841,7 +841,7 @@ class utils
|
||||
|
||||
$sCurrentScript = realpath($_SERVER['SCRIPT_FILENAME']);
|
||||
$sCurrentScript = str_replace('\\', '/', $sCurrentScript); // canonical path
|
||||
$sAppRoot = str_replace('\\', '/', realpath(APPROOT)); // canonical path
|
||||
$sAppRoot = str_replace('\\', '/', realpath(APPROOT)).'/'; // canonical path with the trailing '/' appended
|
||||
$sCurrentRelativePath = str_replace($sAppRoot, '', $sCurrentScript);
|
||||
|
||||
$sAppRootPos = strpos($sAbsoluteUrl, $sCurrentRelativePath);
|
||||
|
||||
Reference in New Issue
Block a user