Fix after security fix

SVN:trunk[1448]
This commit is contained in:
Romain Quetiez
2011-08-11 16:31:59 +00:00
parent 9c6605f7e7
commit e2e4c53b0d
2 changed files with 6 additions and 6 deletions

View File

@@ -196,7 +196,7 @@ class utils
}
else
{
$retValue = filter_var($value, FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>'/^[A-Za-z0-9_=-]*$/'))); // the '=' equal character is used in serialized filters
$retValue = filter_var($value, FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>'/^[ A-Za-z0-9_=-]*$/'))); // the '=' equal character is used in serialized filters
}
break;

View File

@@ -141,7 +141,7 @@ try
SetupWebPage::log_info("Update Database Schema.");
InitDataModel(TMP_CONFIG_FILE, true); // load data model and connect to the database
$sMode = Utils::ReadParam('mode', 'install');
$sSelectedModules = Utils::ReadParam('selected_modules', '');
$sSelectedModules = Utils::ReadParam('selected_modules', '', false, 'raw_data');
$aSelectedModules = explode(',', $sSelectedModules);
if(!CreateDatabaseStructure(MetaModel::GetConfig(), $aSelectedModules, $sMode))
{
@@ -153,7 +153,7 @@ try
case 'after_db_create':
SetupWebPage::log_info('After Database Creation');
$sMode = Utils::ReadParam('mode', 'install');
$sSelectedModules = Utils::ReadParam('selected_modules', '');
$sSelectedModules = Utils::ReadParam('selected_modules', '', false, 'raw_data');
$aSelectedModules = explode(',', $sSelectedModules);
InitDataModel(TMP_CONFIG_FILE, true); // load data model and connect to the database
@@ -186,8 +186,8 @@ try
if($sMode == 'install')
{
// Create the admin user only in case of installation
$sAdminUser = Utils::ReadParam('auth_user', '');
$sAdminPwd = Utils::ReadParam('auth_pwd', '');
$sAdminUser = Utils::ReadParam('auth_user', '', false, 'raw_data');
$sAdminPwd = Utils::ReadParam('auth_pwd', '', false, 'raw_data');
$sLanguage = Utils::ReadParam('language', '');
if (!CreateAdminAccount(MetaModel::GetConfig(), $sAdminUser, $sAdminPwd, $sLanguage))
{
@@ -201,7 +201,7 @@ try
break;
case 'load_data': // Load data files
$sFileName = Utils::ReadParam('file', '');
$sFileName = Utils::ReadParam('file', '', false, 'raw_data');
$sSessionStatus = Utils::ReadParam('session_status', '');
$iPercent = (integer)Utils::ReadParam('percent', 0);
SetupWebPage::log_info("Loading file: $sFileName");