mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-12 00:44:43 +00:00
fix for [HER-1808] uncaught URLDecoder IllegalArgumentException in ExtractorHTML
* ExtractorHTML.java
still consider values rejected by URLDecoder
This commit is contained in:
1 parent
dd4bf9a910
commit
afc2a55e49
1 file changed
+3
@@ -538,6 +538,9 @@ public class ExtractorHTML extends ContentExtractor implements InitializingBean
|
||||
if (encodedKeyVal.length == 2) try {
|
||||
String value = URLDecoder.decode(encodedKeyVal[1], "UTF-8");
|
||||
considerIfLikelyUri(curi, value, valueContext, hop);
|
||||
} catch (IllegalArgumentException e) {
|
||||
// still consider values rejected by URLDecoder
|
||||
considerIfLikelyUri(curi, encodedKeyVal[1], valueContext, hop);
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
throw new AssertionError("all jvms must support UTF-8, and yet somehow this happened: " + e);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user