opl must be sent in all cases for proper display of vendor items
minor bug in name verification
This commit is contained in:
parent
0fba903e3a
commit
5741d5e371
2 changed files with 13 additions and 17 deletions
|
|
@ -35,7 +35,7 @@ namespace Server.Misc
|
|||
|
||||
public static bool Validate( string name, int minLength, int maxLength, bool allowLetters, bool allowDigits, bool noExceptionsAtStart, int maxExceptions, char[] exceptions, string[] disallowed, string[] startDisallowed )
|
||||
{
|
||||
if ( name.Length < minLength || name.Length > maxLength )
|
||||
if ( name == null || name.Length < minLength || name.Length > maxLength )
|
||||
return false;
|
||||
|
||||
int exceptCount = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue