Skip to content
Snippets Groups Projects
Commit 046a7e53 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Zero-length string is not a valid real name.

parent 9011ad73
No related branches found
No related tags found
No related merge requests found
Pipeline #7898 passed
......@@ -3873,6 +3873,8 @@ bool check_realname(scfg_t* cfg, const char* name)
{
if (name == NULL)
return false;
if (name[0] == 0)
return false;
return (uchar)name[0] < 0x7f && name[1] && IS_ALPHA(name[0]) && strchr(name, ' ');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment