Bug #79684
closedExtbase validator StringLength fails on counting the length of text with umlauts
100%
Description
In extbase StringLength validator on line 59 $stringLength = strlen($value);
the length is wrong if umlaute (ä,ö,ü) in text. Probably also with other multibyte characters in text.
We fixed this quickly by using mb_strlen instead of strlen in our own extension and overwrite the StringLengthValidator class.
Is mb_strlen the solution for this problem? Is it planned to fix this problem in the validator soon?
Updated by Georg Ringer almost 8 years ago
- Status changed from New to Accepted
- Assignee set to Georg Ringer
Updated by Gerrit Code Review almost 8 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51593
Updated by Karsten Nowak (undkonsorten) almost 8 years ago
Yes, I think it's soon enough. Thx.
I'm wondering that nobody else had this problem before. Maybe nobody checked lengths of strings so close to the limit. We found this bug because on our validation were two characters be left to the limit and 6 umlauts in text ;-).
Updated by Gerrit Code Review almost 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51593
Updated by Georg Ringer almost 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 4ba6811296f8bf7dfdc806391b51c77ca2b04fff.