Skip to content

Commit 656f1b3

Browse files
committed
Fixed Guava security issue
1 parent 577063f commit 656f1b3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@
263263
<dependency>
264264
<groupId>com.google.guava</groupId>
265265
<artifactId>guava</artifactId>
266-
<version>14.0.1</version>
266+
<version>24.1.1-jre</version>
267267
</dependency>
268268
<dependency>
269269
<groupId>org.apache.geronimo.specs</groupId>

src/main/com/warcgenerator/core/helper/FileHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ public static String getDomainNameFromURL(String url) {
102102
String privateDomain = "";
103103
try {
104104
privateDomain = InternetDomainName.from(url).topPrivateDomain()
105-
.name();
105+
//.name();
106+
.toString();
106107
} catch (IllegalArgumentException ex) {
107108
String urlTmp = url.replaceAll("http://", "");
108109
urlTmp = urlTmp.replaceAll("https://", "");

0 commit comments

Comments
 (0)