From 8d99b837ecbab7080d361060d8620bede9a29e94 Mon Sep 17 00:00:00 2001 From: mohrt Date: Thu, 8 May 2003 14:29:44 +0000 Subject: [PATCH] only add DIRECTORY_SEPARATOR if it isn't already present --- libs/Config_File.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/Config_File.class.php b/libs/Config_File.class.php index 7c53178b..f6ee755a 100644 --- a/libs/Config_File.class.php +++ b/libs/Config_File.class.php @@ -99,8 +99,11 @@ class Config_File { $this->_trigger_error_msg("Bad config file path '$config_path'"); return; } + if(substr($config_path, -1) != DIRECTORY_SEPARATOR) { + $config_path .= DIRECTORY_SEPARATOR; + } - $this->_config_path = $config_path . DIRECTORY_SEPARATOR; + $this->_config_path = $config_path; } }