Index: FileUtil.java
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat/src/share/org/apache/tomcat/util/FileUtil.java,v
retrieving revision 1.9.2.5
diff -u -r1.9.2.5 FileUtil.java
--- FileUtil.java	2000/11/05 05:28:53	1.9.2.5
+++ FileUtil.java	2001/02/03 05:49:39
@@ -134,6 +134,17 @@
 	// Hack for Jsp ( and other servlets ) that use rel. paths 
 	// if( ! path.startsWith("/") ) path="/"+ path;
 
+        // Unencode the path if it contains %
+        if (path.indexOf('%') != -1) {
+            try {
+                path = RequestUtil.URLDecode(path);
+            } catch (NumberFormatException nfe) {
+                // in the case we have an url that isn't properly encoded,
+                // we don't find the resource and send a sane error message
+                return null;
+            }
+        }
+
 	String normP=path;
 	if( path.indexOf('\\') >=0 )
 	    normP= path.replace('\\', '/');

