mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-28 04:20:32 +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:
@@ -625,7 +625,7 @@ else
|
|||||||
*/
|
*/
|
||||||
function utf8_str_split($str, $split_len = 1)
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user