resourcePath doesn't end in / so need to use exact match to ensure on WEB-INF/lib...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 20 Jul 2009 13:43:45 +0000 (13:43 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 20 Jul 2009 13:43:45 +0000 (13:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@795838 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/startup/TldConfig.java

index cf89fef..c5fc9cc 100644 (file)
@@ -423,8 +423,8 @@ public final class TldConfig  implements LifecycleListener {
                 NameClassPair item = items.nextElement();
                 String resourcePath = rootPath + item.getName();
                 if (!resourcePath.endsWith(TLD_EXT)
-                        && (resourcePath.startsWith("/WEB-INF/classes/")
-                            || resourcePath.startsWith("/WEB-INF/lib/"))) {
+                        && (resourcePath.equals("/WEB-INF/classes")
+                            || resourcePath.equals("/WEB-INF/lib"))) {
                     continue;
                 }
                 if (resourcePath.endsWith(TLD_EXT)) {