*** FileDirContext.java.org	Wed Sep 25 09:50:36 2002
--- FileDirContext.java	Wed Sep 25 09:52:44 2002
***************
*** 890,901 ****
                  return null;
  
              // Check to see if going outside of the web application root
!             if ((!allowLinking) && (!canPath.startsWith(absoluteBase))) {
                  return null;
              }
  
              // Case sensitivity check
!             if (caseSensitive) {
                  String fileAbsPath = file.getAbsolutePath();
                  if (fileAbsPath.endsWith("."))
                      fileAbsPath = fileAbsPath + "/";
--- 890,902 ----
                  return null;
  
              // Check to see if going outside of the web application root
!             boolean isLink = !canPath.startsWith(absoluteBase);
!             if ((!allowLinking) && ( isLink )) {
                  return null;
              }
  
              // Case sensitivity check
!             if (caseSensitive && ( !isLink && allowLinking )) {
                  String fileAbsPath = file.getAbsolutePath();
                  if (fileAbsPath.endsWith("."))
                      fileAbsPath = fileAbsPath + "/";

