Project

General

Profile

Actions

Bug #79684

closed

Extbase validator StringLength fails on counting the length of text with umlauts

Added by Karsten Nowak (undkonsorten) about 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Extbase
Target version:
-
Start date:
2017-02-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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?

Actions

Also available in: Atom PDF