[vhffs-dev] [svn] commit: r78 - trunk/vhffs-api/src/Vhffs/Services/Svn.pm trunk/vhffs-panel/svn/svn_submit.pl

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


Author: soda
Date: Sat Jul 30 01:44:57 2005
New Revision: 78

Log:
Fix Svn bugs


Modified:
    trunk/vhffs-api/src/Vhffs/Services/Svn.pm
    trunk/vhffs-panel/svn/svn_submit.pl

Modified: trunk/vhffs-api/src/Vhffs/Services/Svn.pm
==============================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Svn.pm (original)
+++ trunk/vhffs-api/src/Vhffs/Services/Svn.pm Sat Jul 30 01:44:57 2005
@@ -155,7 +155,6 @@
 	my $request = $self->{'db'}->{'DB_WRITE'}->prepare($query);
 	$request->execute;
 
-	system("echo \"$query\" > /tmp/prout"); 
 	$self->SUPER::commit;
 }
 

Modified: trunk/vhffs-panel/svn/svn_submit.pl
==============================================================================
--- trunk/vhffs-panel/svn/svn_submit.pl (original)
+++ trunk/vhffs-panel/svn/svn_submit.pl Sat Jul 30 01:44:57 2005
@@ -40,9 +40,9 @@
 {
 	$message = gettext("CGI Error !");
 }
-if( length( $repo_name ) < 3 )
+elsif( ( length( $repo_name ) < 3 ) || ( ! ( $repo_name =~ /^[a-z0-9]+$/)) )
 {
-	$message = gettext("The repository name is too short. It must contains at least 3 caracters");
+	$message = gettext("The repository name is too short. It must contains at least 3 caracters and must contains only caracters and numbers");
 }
 elsif( ( $svn = Vhffs::Panel::Svn::create_svn( $vhffs , $repo_name , $user , $group ) ) < 0 )
 {




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