Commit 3e2004e8 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Fix a problem with access to the Emulab Source repo.

parent c3b24be8
......@@ -183,7 +183,7 @@ $agent = escapeshellcmd($_SERVER["HTTP_USER_AGENT"]);
$encoding = escapeshellcmd($_SERVER["HTTP_ACCEPT_ENCODING"]);
# This is special ...
if (isset($_SERVER["PATH_INFO"])) {
if (isset($_SERVER["PATH_INFO"]) && $_SERVER["PATH_INFO"] != "") {
$path = escapeshellcmd($_SERVER["PATH_INFO"]);
}
else {
......
......@@ -37,6 +37,7 @@ else {
# Form the real url.
#
$newurl = preg_replace("/cvswebwrap/", "cvsweb", $_SERVER['REQUEST_URI']);
$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