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)



Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.415 (Entity 5.415)
Subject: check for invalid usernames
X-RT-Original-Encoding: iso-8859-1
Content-Length: 365
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
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.415 (Entity 5.415)
From: husseinp [...] gmail.com
X-RT-Original-Encoding: iso-8859-1
Content-Length: 151
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.