mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-19 03:51:07 +00:00
don't find link name in empty urls
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3218 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
944ec79cd3
commit
224f5e723b
1 changed files with 2 additions and 2 deletions
|
|
@ -223,13 +223,13 @@ class LinkFinder (TagFinder):
|
|||
assert isinstance(url, unicode) or url is None, repr(url)
|
||||
urls = []
|
||||
# look for meta refresh
|
||||
if tag == u'meta':
|
||||
if tag == u'meta' and url:
|
||||
mo = refresh_re.match(url)
|
||||
if mo:
|
||||
urls.append(mo.group("url"))
|
||||
elif attr != 'content':
|
||||
urls.append(url)
|
||||
elif attr == u'style':
|
||||
elif attr == u'style' and url:
|
||||
for mo in css_url_re.finditer(url):
|
||||
u = mo.group("url")
|
||||
urls.append(unquote(u, matching=True))
|
||||
|
|
|
|||
Loading…
Reference in a new issue