/[LeafOK_CVS]/lbbs/src/user_list_display.c
ViewVC logotype

Diff of /lbbs/src/user_list_display.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.16 by sysadm, Sun Nov 2 15:31:23 2025 UTC Revision 1.17 by sysadm, Mon Nov 3 06:21:01 2025 UTC
# Line 502  int user_list_search(void) Line 502  int user_list_search(void)
502                  // Verify format                  // Verify format
503                  for (i = 0, ok = 1; ok && username[i] != '\0'; i++)                  for (i = 0, ok = 1; ok && username[i] != '\0'; i++)
504                  {                  {
505                          if (!(isalpha(username[i]) || (i > 0 && isdigit(username[i]))))                          if (!(isalpha(username[i]) || (i > 0 && (isdigit(username[i]) || username[i] == '_'))))
506                          {                          {
507                                  ok = 0;                                  ok = 0;
508                          }                          }
509                  }                  }
510                  if (ok && i > 12)                  if (ok && i > BBS_username_max_len)
511                  {                  {
512                          ok = 0;                          ok = 0;
513                  }                  }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1