[vhffs-dev] [svn] commit: r240 - /trunk/vhffs-panel/subscribe.pl

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


Author: gradator
Date: Tue Oct 24 00:15:16 2006
New Revision: 240

Log:
Now accept zipcode with [0-9A-Za-z\-] ;)


Modified:
    trunk/vhffs-panel/subscribe.pl

Modified: trunk/vhffs-panel/subscribe.pl
==============================================================================
--- trunk/vhffs-panel/subscribe.pl (original)
+++ trunk/vhffs-panel/subscribe.pl Tue Oct 24 00:15:16 2006
@@ -137,7 +137,7 @@
 	{
 		push(@errors, {error => gettext("You must declare a valid mail address")});
 	}
-	if( ! ( $zipcode =~ /^[\d]+$/ ) )
+	if( ! ( $zipcode =~ /^[\w\d\s\-]+$/ ) )
 	{
 		push(@errors, {error => gettext("Your zipcode is not correct! Please enter a correct zipcode")});
 	}




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