Skip to content

Commit

Permalink
Fixes scottwernervt#5: Strip href attribute in link tag
Browse files Browse the repository at this point in the history
  • Loading branch information
scottwernervt committed May 17, 2018
1 parent 84f9aca commit fdb14f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion favicon/favicon.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get_links(url, html):
icons = set()
for rel in LINK_RELS:
for link in soup.find_all('link', {'rel': rel, 'href': True}):
href = link['href']
href = link['href'].strip()
if href.startswith('data:image/'):
continue

Expand Down

0 comments on commit fdb14f3

Please sign in to comment.