Author: remy.maucherat(a)jboss.com
Date: 2008-02-13 08:37:12 -0500 (Wed, 13 Feb 2008)
New Revision: 417
Modified:
trunk/java/org/apache/catalina/core/ApplicationContext.java
Log:
- Strict compliant only for the check for / prefix.
Modified: trunk/java/org/apache/catalina/core/ApplicationContext.java
===================================================================
--- trunk/java/org/apache/catalina/core/ApplicationContext.java 2008-02-10 23:19:54 UTC
(rev 416)
+++ trunk/java/org/apache/catalina/core/ApplicationContext.java 2008-02-13 13:37:12 UTC
(rev 417)
@@ -40,6 +40,7 @@
import javax.servlet.ServletContextAttributeListener;
import org.apache.catalina.Context;
+import org.apache.catalina.Globals;
import org.apache.catalina.Host;
import org.apache.catalina.Wrapper;
import org.apache.catalina.deploy.ApplicationParameter;
@@ -507,7 +508,7 @@
public InputStream getResourceAsStream(String path) {
path = normalize(path);
- if (path == null || !path.startsWith("/"))
+ if (path == null || (Globals.STRICT_SERVLET_COMPLIANCE &&
!path.startsWith("/")))
return (null);
DirContext resources = context.getResources();
Show replies by date