Skip to content
Snippets Groups Projects
Commit 21d3d850 authored by N Nikhil's avatar N Nikhil
Browse files

#156058834::XSS in default Value while creating custom field

parent 0e7499a4
No related branches found
No related tags found
1 merge request!919#156058834::XSS in default Value while creating custom field
......@@ -191,7 +191,7 @@ class Settings_LayoutEditor_Module_Model extends Vtiger_Module_Model {
if (is_array($defaultValue)) {
$defaultValue = implode(' |##| ', $defaultValue);
}
$fieldModel->set('defaultvalue', $defaultValue);
$fieldModel->set('defaultvalue', vtlib_purify($defaultValue));
$blockModel = Vtiger_Block_Model::getInstance($blockId, $this);
$blockModel->addField($fieldModel);
......
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