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

Modern AAC problem with [ ' ]

Jonass

Here who doesn't run, it flies.
Joined
Nov 12, 2008
Messages
216
Reaction score
3
I have Modern AAC rev 244 and in Search Character you find one players with " ' " and website say this: An Error Was Encountered
The URI you submitted has disallowed characters.

Please Help Me.

Thanks.

:)
 
In config.php you will find something similar to this:

PHP:
$config['engine']['permitted_uri_chars'] = "a-z 0-9~%.:_\-'+";

Just add the quote marks (symbols) you are using.

Example
PHP:
$config['engine']['permitted_uri_chars'] = "a-z 0-9~%.:_\-'+\\[\\]";
 
system/libraries/form_validation.php

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 this:

Code:
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;  
        }
 
Back
Top