Skip to content
Snippets Groups Projects
Commit 36597600 authored by Prasad's avatar Prasad
Browse files

Merge branch 'Configuration_Vulnerable' into 'master'

Configuration file vulnerable for variables update

See merge request !397
parents 8bbe00f3 487c2744
No related branches found
No related tags found
No related merge requests found
......@@ -136,8 +136,12 @@ class Settings_Vtiger_ConfigModule_Model extends Settings_Vtiger_Module_Model {
$fileContent = $this->completeData;
$updatedFields = $this->get('updatedFields');
$validationInfo = $this->validateFieldValues($updatedFields);
$editableFields = $this->getEditableFields();
if ($validationInfo === true) {
foreach ($updatedFields as $fieldName => $fieldValue) {
if(!in_array($fieldName, array_keys($editableFields))){
continue;
}
$patternString = "\$%s = '%s';";
if ($fieldName === 'upload_maxsize') {
$fieldValue = $fieldValue * 1048576; //(1024 * 1024)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment