Skip to content

Commit

Permalink
Merge pull request yasserg#55 from MadEgg/bug-html-metarefresh
Browse files Browse the repository at this point in the history
Fix bug where metaRefresh was used instead of metaLocation
  • Loading branch information
yasserg committed Jul 19, 2015
2 parents 7ed6385 + 4f6b7db commit 373f09d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ public void startElement(String uri, String localName, String qName, Attributes
int pos = content.toLowerCase().indexOf("url=");
if (pos != -1) {
metaRefresh = content.substring(pos + 4);
addToOutgoingUrls(metaRefresh, localName);
}
addToOutgoingUrls(metaRefresh, localName);
}

// http-equiv="location" content="http://foo.bar/..."
if ("location".equals(equiv) && (metaLocation == null)) {
metaLocation = content;
addToOutgoingUrls(metaRefresh, localName);
addToOutgoingUrls(metaLocation, localName);
}
}
} else if (element == Element.BODY) {
Expand Down Expand Up @@ -194,4 +194,4 @@ public String getBaseUrl() {
public Map<String, String> getMetaTags() {
return metaTags;
}
}
}

0 comments on commit 373f09d

Please sign in to comment.