From 03ad72a1fa69e13f03dc0b25f7a15304181646bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Salvador?= Date: Tue, 9 Jul 2013 14:19:05 +0200 Subject: [PATCH] fix dol_buildpath failing when processing path such as file.php?id=__ID__ --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index cc4b2aac7f0..0767c13c9b1 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -285,7 +285,7 @@ function dol_buildpath($path, $type=0) if (! empty($regs[1])) { //print $key.'-'.$dirroot.'/'.$path.'-'.$conf->file->dol_url_root[$type].'
'."\n"; - if (file_exists($dirroot.'/'.$path)) + if (file_exists($dirroot.'/'.$regs[1])) { if ($type == 1) {