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:
calvin 2006-05-16 22:05:17 +00:00
parent 944ec79cd3
commit 224f5e723b

View file

@ -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))