From d7beeb783cdded2faa0ffdbf3295557487c4e02b Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Thu, 30 Nov 2017 21:53:23 +0900 Subject: [PATCH] =?UTF-8?q?config=ED=8C=8C=EC=9D=BC=20=EC=9D=BD=EC=9D=84?= =?UTF-8?q?=20=EB=95=8C=20BOM=EB=AC=B8=EC=9E=90=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xpressengine/xe-core#1604 --- common/framework/config.php | 2 ++ common/framework/parsers/configparser.php | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/common/framework/config.php b/common/framework/config.php index 757f4c7ab..0d1ab7ef3 100644 --- a/common/framework/config.php +++ b/common/framework/config.php @@ -30,7 +30,9 @@ class Config { if (file_exists(\RX_BASEDIR . self::$config_filename)) { + ob_start(); self::$_config = (include \RX_BASEDIR . self::$config_filename); + ob_end_clean(); } else { diff --git a/common/framework/parsers/configparser.php b/common/framework/parsers/configparser.php index cfa60dbac..2ae644e7e 100644 --- a/common/framework/parsers/configparser.php +++ b/common/framework/parsers/configparser.php @@ -22,7 +22,9 @@ class ConfigParser // Load DB info file. if (file_exists(\RX_BASEDIR . Config::$old_db_config_filename)) { + ob_start(); include \RX_BASEDIR . Config::$old_db_config_filename; + ob_end_clean(); } else { @@ -32,7 +34,9 @@ class ConfigParser // Load FTP info file. if (file_exists(\RX_BASEDIR . Config::$old_ftp_config_filename)) { + ob_start(); include \RX_BASEDIR . Config::$old_ftp_config_filename; + ob_end_clean(); } // Load selected language file.