mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-28 08:35:52 +00:00
Strip quotes from URL value.
This commit is contained in:
@@ -981,7 +981,8 @@ public class ExtractorHTML extends ContentExtractor implements InitializingBean
|
||||
} else if ("refresh".equalsIgnoreCase(httpEquiv) && content != null) {
|
||||
int urlIndex = content.indexOf("=") + 1;
|
||||
if(urlIndex>0) {
|
||||
String refreshUri = content.substring(urlIndex);
|
||||
// strip any quotes ("') characters from the URL value.
|
||||
String refreshUri = TextUtils.replaceAll("[\"']", content.substring(urlIndex), "");
|
||||
try {
|
||||
int max = getExtractorParameters().getMaxOutlinks();
|
||||
addRelativeToBase(curi, max, refreshUri,
|
||||
|
||||
Reference in New Issue
Block a user