[vhffs-dev] [2027] fixed check_username and check_groupname

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 2027
Author:   gradator
Date:     2012-02-19 20:15:18 +0100 (Sun, 19 Feb 2012)
Log Message:
-----------
fixed check_username and check_groupname

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Group.pm
    trunk/vhffs-api/src/Vhffs/User.pm

Modified: trunk/vhffs-api/src/Vhffs/Group.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Group.pm	2012-02-19 17:07:44 UTC (rev 2026)
+++ trunk/vhffs-api/src/Vhffs/Group.pm	2012-02-19 19:15:18 UTC (rev 2027)
@@ -74,7 +74,7 @@
 =cut
 sub check_groupname($) {
 	my $groupname = shift;
-	return defined $groupname and $groupname =~ /^[a-z0-9]{3,12}$/;
+	return ( defined $groupname and $groupname =~ /^[a-z0-9]{3,12}$/ );
 }
 
 =pod

Modified: trunk/vhffs-api/src/Vhffs/User.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/User.pm	2012-02-19 17:07:44 UTC (rev 2026)
+++ trunk/vhffs-api/src/Vhffs/User.pm	2012-02-19 19:15:18 UTC (rev 2027)
@@ -78,7 +78,7 @@
 =cut
 sub check_username($) {
 	my $username = shift;
-	return defined $username and $username =~ /^[a-z0-9]{3,12}$/;
+	return ( defined $username and $username =~ /^[a-z0-9]{3,12}$/ );
 }
 
 =pod


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/