gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/cgi-bin cvsweb.cgi,1.1,1.2


From: gsmet
Subject: [Gforge-commits] gforge/cgi-bin cvsweb.cgi,1.1,1.2
Date: Tue, 13 Apr 2004 17:25:07 -0500

Update of /cvsroot/gforge/gforge/cgi-bin
In directory db.perdue.net:/tmp/cvs-serv28389/cgi-bin

Modified Files:
        cvsweb.cgi 
Log Message:
* fixed a bug which prevented users to download files
* cvs root is now the name of the project


Index: cvsweb.cgi
===================================================================
RCS file: /cvsroot/gforge/gforge/cgi-bin/cvsweb.cgi,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cvsweb.cgi  4 Mar 2004 21:05:05 -0000       1.1
+++ cvsweb.cgi  13 Apr 2004 22:25:04 -0000      1.2
@@ -177,6 +177,7 @@
 $doCheckout = ($where =~ /^\/$checkoutMagic/);
 $where =~ s|^/($checkoutMagic)?||;
 $where =~ s|/+$||;
+$where =~ s|^/+||;
 if ($where) {
     $scriptwhere = $scriptname . '/' . urlencode($where);
 }
@@ -336,6 +337,7 @@
     $input{'cvsroot'} =~ s/\.//g; # we do not like dots
     if ( -d ($CVSROOT{"$cvstree"} . "/" . $input{'cvsroot'}) ) {
        $cvsroot = $CVSROOT{"$cvstree"} . "/" . $input{'cvsroot'};
+       $cvstree = $input{'cvsroot'};
     } else {
        &fatal("500 Internal Error", "<strong>no such project</strong>");
     }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]