Skip to content

Commit

Permalink
Update FieldsManager.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Feb 14, 2022
1 parent 2c18d63 commit 43efb2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MicroweberPackages/CustomField/FieldsManager.php
Expand Up @@ -3,6 +3,7 @@
namespace MicroweberPackages\CustomField;

use MicroweberPackages\CustomField\Fields\Text;
use MicroweberPackages\Helper\XSSSecurity;
use function Matrix\trace;
use MicroweberPackages\CustomField\Events\CustomFieldWasDeleted;
use MicroweberPackages\CustomField\Fields\Address;
Expand Down Expand Up @@ -305,6 +306,9 @@ public function save($fieldData)
return false;
}

$xssClean = new XSSSecurity();
$fieldData = $xssClean->clean($fieldData);

if (isset($fieldData['copy_of']) and $fieldData['copy_of']) {

$existing = array();
Expand Down

0 comments on commit 43efb2d

Please sign in to comment.