Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:microweber/microweber into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mw committed Feb 14, 2022
2 parents 4381423 + 43efb2d commit 1d22344
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 1d22344

Please sign in to comment.