Skip to content
Snippets Groups Projects
Commit 487c2744 authored by Uma's avatar Uma
Browse files

Configuration file vulnerabilites to update core variables if fixed

parent 021d53db
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