05/12/2012, 15:01:09
For your information.
Here is my complete validRelativePath method. Which solve the problem on my 1.11.3 install
The condition if($path == '/') is only for the root folder management. The code below this instruction manage all subfolders.
Regards,
Here is my complete validRelativePath method. Which solve the problem on my 1.11.3 install
Code :
function validRelativePath($path)
{
$dirs = $this->getDirs();
if($path == '/')
Return true;
//check the path given in the url against the
//list of paths in the system.
for($i = 0; $i < count($dirs); $i++)
{
$key = key($dirs);
//we found the path
if($key == $path || $key == $path."/")
Return true;
next($dirs);
}
Return false;
}
The condition if($path == '/') is only for the root folder management. The code below this instruction manage all subfolders.
Regards,