geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r265669 - /geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatWebAppContext.java
Date Thu, 01 Sep 2005 08:00:08 GMT
Author: jgenender
Date: Thu Sep  1 01:00:06 2005
New Revision: 265669

URL: http://svn.apache.org/viewcvs?rev=265669&view=rev
Log:
Fixed context to check for a slash in the beginning of the path

Modified:
    geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatWebAppContext.java

Modified: geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatWebAppContext.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatWebAppContext.java?rev=265669&r1=265668&r2=265669&view=diff
==============================================================================
--- geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatWebAppContext.java
(original)
+++ geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatWebAppContext.java
Thu Sep  1 01:00:06 2005
@@ -278,7 +278,7 @@
     }
 
     public void setContextPath(String path) {
-        this.path = path;
+        this.path = path.startsWith("/") ? path : "/" + path;
     }
 
     public SecurityHolder getSecurityHolder() {



Mime
View raw message