From 72479e13ab41444db532f8d8e238796e419e07c3 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Fri, 10 Jun 2011 01:07:41 +0200 Subject: [PATCH] [ticket/10198] range validation for strings should limit characters not bytes PHPBB3-10198 --- phpBB/adm/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/adm/index.php b/phpBB/adm/index.php index 3b93c9ea72..5498e6bff7 100644 --- a/phpBB/adm/index.php +++ b/phpBB/adm/index.php @@ -600,7 +600,7 @@ function validate_range($value_ary, &$error) { case 'string' : $max = (isset($column[1])) ? min($column[1],$type['max']) : $type['max']; - if (strlen($value['value']) > $max) + if (utf8_strlen($value['value']) > $max) { $error[] = sprintf($user->lang['SETTING_TOO_LONG'], $user->lang[$value['lang']], $max); }