fix dol_buildpath failing when processing path such as file.php?id=__ID__

This commit is contained in:
Cédric Salvador
2013-07-09 14:19:05 +02:00
parent 0ca4e4ffe8
commit 03ad72a1fa

View File

@@ -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)
{