1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-11 00:40:56 +02:00

- do data validation via is_int instead of preg_match, ctype has bugs so it can't be trusted

git-svn-id: file:///svn/phpbb/trunk@6720 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M
2006-12-07 02:30:33 +00:00
parent b508c57b80
commit d76c4d54a1

View File

@ -625,7 +625,7 @@ else
*/
function utf8_str_split($str, $split_len = 1)
{
if (!preg_match('/^[0-9]+$/', $split_len) || $split_len < 1)
if (!is_int($split_len) || $split_len < 1)
{
return false;
}