String path = null;
String name = null;
String scriptname = null;
- String cginame = null;
+ String cginame = "";
if ((webAppRootDir != null)
&& (webAppRootDir.lastIndexOf(File.separator) ==
if (debug >= 3) {
log("findCGI: currentLoc=" + currentLocation);
}
- currentLocation = new File(currentLocation,
- (String) dirWalker.nextElement());
+ String nextElement = (String) dirWalker.nextElement();
+ currentLocation = new File(currentLocation, nextElement);
+ cginame = cginame + "/" + nextElement;
}
if (!currentLocation.isFile()) {
return new String[] { null, null, null, null };
}
path = currentLocation.getAbsolutePath();
name = currentLocation.getName();
- cginame = (currentLocation.getParent() + File.separator).
- substring(webAppRootDir.length()) + name;
if (".".equals(contextPath)) {
- scriptname = servletPath + cginame;
+ scriptname = servletPath;
} else {
- scriptname = contextPath + servletPath + cginame;
+ scriptname = contextPath + servletPath;
+ }
+ if (!servletPath.equals(cginame)) {
+ scriptname = scriptname + cginame;
}
}
</properties>
<body>
+<section name="Tomcat 6.0.10 (remm)">
+ <subsection name="Catalina">
+ <changelog>
+ <fix>
+ Fix formatting of CGI variable SCRIPT_NAME. (markt)
+ </fix>
+ </changelog>
+ </subsection>
+</section>
<section name="Tomcat 6.0.9 (remm)">
<subsection name="General">
<changelog>