Skip to content

Commit 414a346

Browse files
committed
Fix - Customer address form allows random code in the name fields #38331
1 parent 881ca23 commit 414a346

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/code/Magento/Customer/etc/validation.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,17 @@
4646
<constraint alias="eav_data_validator" class="Magento\Eav\Model\Validator\Attribute\Data" />
4747
</entity_constraints>
4848
</rule>
49+
<rule name="check_name">
50+
<entity_constraints>
51+
<constraint alias="name_validator" class="Magento\Customer\Model\Validator\Name" />
52+
</entity_constraints>
53+
</rule>
4954
</rules>
5055
<groups>
5156
<group name="save">
5257
<uses>
5358
<use rule="check_eav"/>
59+
<use rule="check_name"/>
5460
</uses>
5561
</group>
5662
</groups>

0 commit comments

Comments
 (0)