milbradt
New Member
- Joined
- Dec 25, 2011
- Messages
- 177
- Solutions
- 1
- Reaction score
- 4
Hello!
I think it is this function that checks if the name is valid.
htdocs/system/libraries/Form_validation.php
How do I lock the character > '<?
Ex: Tes'tes
I think it is this function that checks if the name is valid.
htdocs/system/libraries/Form_validation.php
Code:
function nickname($str)
{
$a = explode(' ', $str);
$error = 0;
foreach($a as $b)
if(!preg_match("/^[a-zA-Z]{2}+(([\'\-][a-zA-Z]{2})?[a-zA-Z]*)*$/", $b))
$error++;
return $error ? FALSE : TRUE;
}
How do I lock the character > '<?
Ex: Tes'tes