From 70bca63bd6936ba1ae1a71f377b0d063b00922f7 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Thu, 30 Apr 2015 13:44:16 +0200 Subject: [PATCH] Fixed error when read file in windows, when path containt space, tiquet: #2166 and #2114 --- pandora_console/include/functions_config.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index b4d1fa863d..f6a72a3514 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -1359,8 +1359,8 @@ function config_check () { } // Get remote file dir. - $remote_config = db_get_value_filter('value', - 'tconfig', array('token' => 'remote_config')); + $remote_config = io_safe_output(db_get_value_filter('value', + 'tconfig', array('token' => 'remote_config'))); if (enterprise_installed()) { @@ -1412,7 +1412,7 @@ function config_check () { __("Database maintance problem")); } - $fontpath = db_get_value_filter('value', 'tconfig', array('token' => 'fontpath')); + $fontpath = io_safe_output(db_get_value_filter('value', 'tconfig', array('token' => 'fontpath'))); if (($fontpath == "") OR (!file_exists ($fontpath))) { set_pandora_error_for_header( __('Your defined font doesnt exist or is not defined. Please check font parameters in your config'),