From ce49c0d5dc66d94adb151aef33d9eb83f7048f22 Mon Sep 17 00:00:00 2001 From: Bahfir Abbes Date: Sun, 27 Dec 2015 18:27:18 +0100 Subject: [PATCH] Update conf.class.php I used dol_sanitizeFileName only for $file in order to not clean the two '/' characters needed in the path --- htdocs/core/class/conf.class.php | 1 + 1 file changed, 1 insertion(+) 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);