fix dol_buildpath failing when processing path such as file.php?id=__ID__
This commit is contained in:
parent
0ca4e4ffe8
commit
03ad72a1fa
@ -285,7 +285,7 @@ function dol_buildpath($path, $type=0)
|
||||
if (! empty($regs[1]))
|
||||
{
|
||||
//print $key.'-'.$dirroot.'/'.$path.'-'.$conf->file->dol_url_root[$type].'<br>'."\n";
|
||||
if (file_exists($dirroot.'/'.$path))
|
||||
if (file_exists($dirroot.'/'.$regs[1]))
|
||||
{
|
||||
if ($type == 1)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user