Commit da8f1f99 authored by David Johnson's avatar David Johnson

Fix args to cvsweb.cgi. Also fix path handling in cvswebwrap.php3. The

fix isn't that great, but it works for now.
parent d60d4846
......@@ -46,7 +46,7 @@
# SUCH DAMAGE.
#
# $FreeBSD: projects/cvsweb/cvsweb.cgi,v 1.119.2.6 2002/09/26 20:56:05 scop Exp $
# $Id: cvsweb.cgi,v 1.8 2006-08-03 21:33:15 kwebb Exp $
# $Id: cvsweb.cgi,v 1.9 2007-04-07 05:39:29 johnsond Exp $
# $Idaemons: /home/cvs/cvsweb/cvsweb.cgi,v 1.84 2001/10/07 20:50:10 knu Exp $
#
###
......@@ -360,7 +360,7 @@ if (defined($input{"content-type"})) {
}
# Emulab Hacks!
if (@ARGV && $ARGV[0] eq "-repo") {
if (@ARGV && $ARGV[0] eq "--repo") {
$license = undef;
@CVSrepositories = (
'top' => [$ARGV[1], $ARGV[1]],
......
......@@ -232,7 +232,7 @@ if (isset($repodir)) {
# I know, I added an argument to a script that is not supposed to
# take any. So be it; it was easy.
$shellcmd .= "$TBSUEXEC_PATH $uid $pid $prog $embed --repo=$repodir";
$shellcmd .= "$TBSUEXEC_PATH $uid $pid $prog $embed --repo $repodir";
}
else {
$shellcmd .= "$script";
......
......@@ -25,7 +25,7 @@ $isadmin = ISADMIN();
# Form the real url.
#
$newurl = preg_replace("/cvswebwrap/", "cvsweb", $_SERVER['REQUEST_URI']);
$newurl .= "/";
$newurl = preg_replace("/php3/","php3/",$newurl);
#
# Standard Testbed Header
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment