Skip Menu |
 

This queue is for tickets about the Linux-usermod CPAN distribution.

Report information
The Basics
Id: 12340
Status: new
Priority: 0/
Queue: Linux-usermod

People
Owner: Nobody in particular
Requestors: husseinp [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.69
Fixed in: (no value)



Subject: check for invalid usernames
Download (untitled) / with headers
text/plain 365b
Hello, There is a line (315 I think): croak "wrong username" unless /^([A-Z]|[a-z]){1}¥w{0,254}/; This ensures that usernames cannot start with a number. I'm not aware of any such restriction (there may be, in which case just let me know), so I'd propose changing that line to: croak "wrong username" unless /^([A-Z]|[a-z]|(0-9){1}¥w{0,254}/; Thanks --hussein
From: husseinp [...] gmail.com
Download (untitled) / with headers
text/plain 151b
Show quoted text
> croak "wrong username" unless /^([A-Z]|[a-z]){1}¥w{0,254}/;
That should read: croak "wrong username" unless /^([A-Z]|[a-z]){1}\w{0,254}/; sorry.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.