pull/7/merge
Kyeong Yoo 2024-10-09 07:19:50 +02:00 committed by GitHub
commit fd9252ee23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,10 @@ void FAST_FUNC die_if_bad_username(const char *name)
/* These chars are valid unless they are at the 1st pos: */
if (*name == '-'
|| *name == '.'
|| *name == '@'
|| *name == '%'
|| *name == '/'
|| *name == '\\'
/* $ is allowed if it's the last char: */
|| (*name == '$' && !name[1])
) {