Skip to content

Commit c5bbda0

Browse files
samin-zenjeck
authored andcommitted
use mb_strlen instead of strlen
Signed-off-by: samin-z <samin.zavarkesh@gmail.com>
1 parent 2cb5d43 commit c5bbda0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/RowService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ public function importRow(Table $table, array $row): int {
887887
*/
888888
private function validateColumnValueLimits(Column $column, $value): void {
889889
$textMaxLength = $column->getTextMaxLength();
890-
if ($textMaxLength !== null && is_string($value) && strlen($value) > $textMaxLength) {
890+
if ($textMaxLength !== null && is_string($value) && mb_strlen($value) > $textMaxLength) {
891891
throw new BadRequestError('Value for column ' . $column->getTitle() . ' exceeds maximum length of ' . $textMaxLength);
892892
}
893893
$numberMin = $column->getNumberMin();

0 commit comments

Comments
 (0)