From eb0ffd350386b7706f414e793da047c225822828 Mon Sep 17 00:00:00 2001 From: rxu Date: Sun, 5 Jun 2011 23:02:56 +0800 Subject: [ticket/10198] validate_config_vars() improperly validates multibyte strings PHPBB3-10198 --- phpBB/adm/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/adm') diff --git a/phpBB/adm/index.php b/phpBB/adm/index.php index dd8f4c279d..3b93c9ea72 100644 --- a/phpBB/adm/index.php +++ b/phpBB/adm/index.php @@ -402,7 +402,7 @@ function validate_config_vars($config_vars, &$cfg_array, &$error) switch ($validator[$type]) { case 'string': - $length = strlen($cfg_array[$config_name]); + $length = utf8_strlen($cfg_array[$config_name]); // the column is a VARCHAR $validator[$max] = (isset($validator[$max])) ? min(255, $validator[$max]) : 255; -- cgit v1.2.1