mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-18 03:35:59 +00:00
fix for [HER-1808] uncaught URLDecoder IllegalArgumentException in ExtractorHTML
* ExtractorHTML.java
still consider values rejected by URLDecoder
This commit is contained in:
@@ -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