Minor tweaks that will make a later proposal (will follow when I have done some more...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 6 Aug 2009 11:15:44 +0000 (11:15 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 6 Aug 2009 11:15:44 +0000 (11:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@801601 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/compiler/TagLibraryInfoImpl.java

index 05372f9..b3b7e92 100644 (file)
@@ -149,8 +149,8 @@ class TagLibraryInfoImpl extends TagLibraryInfo implements TagConstants {
         }
 
         try {
-            if (!location[0].endsWith("jar")) {
-                // Location points to TLD file
+            if (location[1] == null) {
+                // Location points directly to TLD file
                 try {
                     in = getResourceAsStream(location[0]);
                     if (in == null) {
@@ -320,7 +320,7 @@ class TagLibraryInfoImpl extends TagLibraryInfo implements TagConstants {
 
         String[] location = new String[2];
         location[0] = uri;
-        if (location[0].endsWith("jar")) {
+        if (location[0].endsWith(".jar")) {
             URL url = null;
             try {
                 url = ctxt.getResource(location[0]);