diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php index 6f9363d8248..34fc77bbc34 100644 --- a/htdocs/core/class/conf.class.php +++ b/htdocs/core/class/conf.class.php @@ -209,6 +209,7 @@ class Conf if(! empty($this->global->LOCAL_CONSTS_FILES)) { $filesList = explode(":", $this->global->LOCAL_CONSTS_FILES); foreach ($filesList as $file) { + $file=dol_sanitizeFileName($file); include_once DOL_DOCUMENT_ROOT . "/$file/{$file}_consts.php"; foreach ($file2bddconsts as $key=>$value) { $conf->global->$key=constant($value);