From: David <da...@us...> - 2006-12-07 02:30:35
|
Update of /cvsroot/phpbb/phpBB2/includes/utf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22646/includes/utf Modified Files: utf_tools.php Log Message: - do data validation via is_int instead of preg_match, ctype has bugs so it can't be trusted Index: utf_tools.php =================================================================== RCS file: /cvsroot/phpbb/phpBB2/includes/utf/utf_tools.php,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** utf_tools.php 2 Dec 2006 18:16:25 -0000 1.32 --- utf_tools.php 7 Dec 2006 02:30:33 -0000 1.33 *************** *** 626,630 **** function utf8_str_split($str, $split_len = 1) { ! if (!preg_match('/^[0-9]+$/', $split_len) || $split_len < 1) { return false; --- 626,630 ---- function utf8_str_split($str, $split_len = 1) { ! if (!is_int($split_len) || $split_len < 1) { return false; |