Valid characters
#1

Hi,

I found somewhere made that function:

Код:
stock IsValidPassword(pass[])
{
  for(new i; i<strlen(pass); i++)
  {
    if((pass[i] < 48) || (pass[i] > 57 && pass[i] < 67) || (pass[i] > 90 && pass[i]< 97) || (pass[i] > 122)) return 0;
  }
  return 1;
}
This that special characters can crash server, so everywhere player can input, or write i have to check? where i have to use that above?
Reply
#2

This is some bullshit. Anything under 32 are control characters so in normal circumstances these aren't used (can't even type with the keyboard) and the rest are normal characters.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)