allow numbers in usernames foerste
authorMatthias Förste <foerste@schlittermann.de>
Fri, 22 Jul 2011 09:10:36 +0200
branchfoerste
changeset 54 1de953919a97
parent 53 dda58a85698b
child 55 68a8cf343f66
allow numbers in usernames
lib/Ius/Dav/Htpasswd.pm
--- a/lib/Ius/Dav/Htpasswd.pm	Thu Jul 21 11:15:57 2011 +0200
+++ b/lib/Ius/Dav/Htpasswd.pm	Fri Jul 22 09:10:36 2011 +0200
@@ -77,7 +77,7 @@
 
     my ( $conf, $user, $expiry ) = @_;
 
-    return unless $user =~ /^[[:alpha:]_]+$/;
+    return unless $user =~ /^[[:alnum:]_]+$/;
 
     if ( defined $expiry ) {
         return unless $expiry =~ /^[0-9]+$/;