diff options
author | rxu <rxu@mail.ru> | 2011-06-05 23:02:56 +0800 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2011-06-10 01:21:36 +0200 |
commit | eb0ffd350386b7706f414e793da047c225822828 (patch) | |
tree | 1ab3fae5fd67350eab762fc5e6961e24405fd7c2 /phpBB/adm/index.php | |
parent | 116744d4e5ba95645162c77124854cc58e1d6084 (diff) | |
download | forums-eb0ffd350386b7706f414e793da047c225822828.tar forums-eb0ffd350386b7706f414e793da047c225822828.tar.gz forums-eb0ffd350386b7706f414e793da047c225822828.tar.bz2 forums-eb0ffd350386b7706f414e793da047c225822828.tar.xz forums-eb0ffd350386b7706f414e793da047c225822828.zip |
[ticket/10198] validate_config_vars() improperly validates multibyte strings
PHPBB3-10198
Diffstat (limited to 'phpBB/adm/index.php')
-rw-r--r-- | phpBB/adm/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |