cap number of favicons to 50 per host
This commit is contained in:
parent
cd896427eb
commit
03e343a136
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ func ParseHTML(body []byte, protocol, hostname string) ParseResult {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if tagName == "link" && hasAttr {
|
if tagName == "link" && hasAttr && len(result.Icons) < 50 {
|
||||||
icon := parseLinkTag(tokenizer, protocol, hostname)
|
icon := parseLinkTag(tokenizer, protocol, hostname)
|
||||||
if icon != nil {
|
if icon != nil {
|
||||||
result.Icons = append(result.Icons, *icon)
|
result.Icons = append(result.Icons, *icon)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue