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

Problems with Modern aac

viniciusturko

New Member
Joined
Jun 23, 2009
Messages
94
Reaction score
2
Location
Brasil
Hello.

I'm using the last rev of Modern and I got an error when trying to accept a friendship invitation. I just get this error :

An Error Was Encountered
The URI you submitted has disallowed characters.

Does anybody knows this error?
Thank you
 
If you want to disallow apostrophe in nicknames, go to system/libraries/form_validation.php and find:
PHP:
function nickname($str) 
        { 
                $a = explode(' ', $str); 
                $error = 0; 
                foreach($a as $b) 
                        if(!preg_match("/^[a-zA-Z]{3}+(([\'\-][a-zA-Z]{2})?[a-zA-Z]*)*$/", $b)) 
                                $error++; 
                                 
                return $error ? FALSE : TRUE; 
        }
Replace it with:
PHP:
function nickname($str) 
        { 
                $a = explode(' ', $str); 
                $error = 0; 
                foreach($a as $b) 
                        if(!preg_match("/^[a-zA-Z]{3}+(([\-][a-zA-Z]{2})?[a-zA-Z]*)*$/", $b)) 
                                $error++; 
                                 
                return $error ? FALSE : TRUE; 
        }
 
¿?

If you want to disallow apostrophe in nicknames, go to system/libraries/form_validation.php and find:
PHP:
function nickname($str) 
        { 
                $a = explode(' ', $str); 
                $error = 0; 
                foreach($a as $b) 
                        if(!preg_match("/^[a-zA-Z]{3}+(([\'\-][a-zA-Z]{2})?[a-zA-Z]*)*$/", $b)) 
                                $error++; 
                                 
                return $error ? FALSE : TRUE; 
        }
Replace it with:
PHP:
function nickname($str) 
        { 
                $a = explode(' ', $str); 
                $error = 0; 
                foreach($a as $b) 
                        if(!preg_match("/^[a-zA-Z]{3}+(([\-][a-zA-Z]{2})?[a-zA-Z]*)*$/", $b)) 
                                $error++; 
                                 
                return $error ? FALSE : TRUE; 
        }

Is the same script
 
Back
Top