[vhffs-dev] [1079] Allow users to empty the GIT commit mail address.

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


Revision: 1079
Author:   beuss
Date:     2007-11-14 06:42:12 +0000 (Wed, 14 Nov 2007)

Log Message:
-----------
Allow users to empty the GIT commit mail address.

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Services/Git.pm


Modified: trunk/vhffs-api/src/Vhffs/Services/Git.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Git.pm	2007-11-12 19:21:29 UTC (rev 1078)
+++ trunk/vhffs-api/src/Vhffs/Services/Git.pm	2007-11-14 06:42:12 UTC (rev 1079)
@@ -162,7 +162,7 @@
 
 sub set_ml_name {
     my ($self, $ml_name) = @_;
-    return -1 unless(Vhffs::Functions::valid_mail($ml_name));
+    return -1 unless(Vhffs::Functions::valid_mail($ml_name) || $ml_name =~ /^\s*$/);
     $self->{ml_name} = $ml_name;
 }
 


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