Skip to content

Commit ed32931

Browse files
authored
gw-min-and-max-character-limit.php: Fix character count with the preferred mb_strlen.
* Fix character with the better mb_strlen * Fix character count with the better mb_strlen
1 parent 4aa9de5 commit ed32931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gravity-forms/gw-min-and-max-character-limit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function validate_character_count( $result, $value, $form, $field ) {
8585
}
8686
}
8787

88-
$char_count = strlen( $value );
88+
$char_count = mb_strlen( $value );
8989
$is_min_reached = $this->_args['min_chars'] !== false && $char_count >= $this->_args['min_chars'];
9090
$is_max_exceeded = $this->_args['max_chars'] !== false && $char_count > $this->_args['max_chars'];
9191

0 commit comments

Comments
 (0)