Update conf.class.php
I used dol_sanitizeFileName only for $file in order to not clean the two '/' characters needed in the path
This commit is contained in:
parent
0027e1a8ba
commit
ce49c0d5dc
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user