Open
Description
Preconditions and environment
- Magento version: tested on 2.4.7-p3.
- Copypasteble 31 "ö" characters for convenience: ööööööööööööööööööööööööööööööö
Steps to reproduce
- In admin go to Customer->Customer Groups.
- Click "Add New Customer Group"
- Input 31 "ö" characters as the group name:
- Click "Save Customer Group".
Expected result
A customer group with code "ööööööööööööööööööööööööööööööö" is created.
Actual result
A customer group with code "öööööööööööööööö" (16 characters) is created.
Additional information
The issue is most likely in these two places:
There we are using the substr function instead of mb_substr. I see no issue with using mb_substr as the database can handle 32 multibyte characters fine.
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.