From d76c4d54a13aee7ee58d7ef402b5dd63b674dcef Mon Sep 17 00:00:00 2001 From: David M Date: Thu, 7 Dec 2006 02:30:33 +0000 Subject: [PATCH] - 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 --- phpBB/includes/utf/utf_tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/utf/utf_tools.php b/phpBB/includes/utf/utf_tools.php index d4277e1f20..e192214d88 100644 --- a/phpBB/includes/utf/utf_tools.php +++ b/phpBB/includes/utf/utf_tools.php @@ -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; }