View | Details | Raw Unified | Return to bug 54745
Collapse All | Expand All

(-)java/org/apache/tomcat/util/scan/StandardJarScanner.java (-1 / +2 lines)
Lines 270-276 Link Here
270
            callback.scan((JarURLConnection) conn);
270
            callback.scan((JarURLConnection) conn);
271
        } else {
271
        } else {
272
            String urlStr = url.toString();
272
            String urlStr = url.toString();
273
            if (urlStr.startsWith("file:") || urlStr.startsWith("jndi:")) {
273
            if (urlStr.startsWith("file:") || urlStr.startsWith("jndi:") ||
274
                urlStr.startsWith("http:") || urlStr.startsWith("https:")) {
274
                if (urlStr.endsWith(Constants.JAR_EXT)) {
275
                if (urlStr.endsWith(Constants.JAR_EXT)) {
275
                    URL jarURL = new URL("jar:" + urlStr + "!/");
276
                    URL jarURL = new URL("jar:" + urlStr + "!/");
276
                    callback.scan((JarURLConnection) jarURL.openConnection());
277
                    callback.scan((JarURLConnection) jarURL.openConnection());

Return to bug 54745