• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Modern Aac] Apostrophe in characters name

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
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
 
Hello!

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

Remove these two characters:

if(!preg_match("/^[a-zA-Z]{2}+(([\'\-][a-zA-Z]{2})?[a-zA-Z]*)*$/", $b))​
 
Back
Top