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

Windows Error with name [vip] in modern acc

walef xavier

New Member
Joined
Dec 7, 2010
Messages
48
Reaction score
0
Hello everybody, I need a help, my system has 1 OTServ vip when the player clicks on a particular item which is item vip reloga and he is now called [VIP] Player, but the Modern ACC does not recognize the characters with names [VIP] the following error appears:

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

Recalling that it is only with the char that contains the [VIP] the name others he looks normally!


thank you

- - - Updated - - -

An Error Was Encountered

The URI you submitted has disallowed characters.
 
Go to system/libraries/form_validation.php

and replace this:

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; 
        }

with this:

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