mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-24 02:11:27 +01:00
fix dol_buildpath failing when processing path such as file.php?id=__ID__
This commit is contained in:
@@ -285,7 +285,7 @@ function dol_buildpath($path, $type=0)
|
|||||||
if (! empty($regs[1]))
|
if (! empty($regs[1]))
|
||||||
{
|
{
|
||||||
//print $key.'-'.$dirroot.'/'.$path.'-'.$conf->file->dol_url_root[$type].'<br>'."\n";
|
//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)
|
if ($type == 1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user