Strengthen package-like assertions
See gh-42682
This commit is contained in:
committed by
Phillip Webb
parent
98dd7b2758
commit
87cc2efb64
@@ -150,7 +150,7 @@ public class Handler extends URLStreamHandler {
|
||||
if (file.startsWith(TOMCAT_WARFILE_PROTOCOL) || !file.contains("*/")) {
|
||||
try {
|
||||
URLConnection connection = new URL(file).openConnection();
|
||||
if (connection.getClass().getName().startsWith("org.apache.catalina")) {
|
||||
if (connection.getClass().getName().startsWith("org.apache.catalina.")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user