Subject: | Users and Groups with a period in their name throw a fatal error |
Date: | Thu, 23 May 2013 17:00:45 -0400 |
To: | bug-Net-Server [...] rt.cpan.org |
From: | Patrick McAnneny <patrick.mcanneny [...] leadkarma.com> |
The regular expressions at lines 344 and 354 in Net::Server::post_bind
cause users and groups with periods in them to throw a fatal error even
though they should be valid.
Simply changing these two regular expressions fixes this.
Possible solutions:
($prop->{'group'} =~ /^([\w-\.]+(?: [\w-\.]+)*)$/)
($prop->{'user'} =~ /^([\w-\.]+)$/)
Thanks!