mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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:
parent
b508c57b80
commit
d76c4d54a1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue