diff options
Diffstat (limited to 'pinyweb')
-rw-r--r-- | pinyweb/suid/piny-suid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pinyweb/suid/piny-suid.c b/pinyweb/suid/piny-suid.c index 0fbaddb..40c497f 100644 --- a/pinyweb/suid/piny-suid.c +++ b/pinyweb/suid/piny-suid.c @@ -22,7 +22,7 @@ int main( int argc, char *argv[] ) { regex_t user_reg; // Please note that these regular expressions should duplicate the language for usernames described in Piny::User. - if ( ( err = regcomp( &user_reg, "^[a-zA-Z][a-zA-Z0-9_.-]*$", REG_EXTENDED | REG_NOSUB ) ) != 0 ) { + if ( ( err = regcomp( &user_reg, "^[a-zA-Z][a-zA-Z0-9_.-]{0,30}$", REG_EXTENDED | REG_NOSUB ) ) != 0 ) { size_t sz = regerror( err, &user_reg, NULL, 0 ); char buf[sz]; regerror( err, &user_reg, buf, sz ); |