fix inifinite recursion option

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1086 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2003-12-05 00:38:11 +00:00
parent 6bcdff1fd8
commit 519c000cd5

View file

@ -408,12 +408,12 @@ class UrlData (object):
def getCacheKey (self):
# note: the host is already lowercase
if self.urlparts:
if self.config["noanchorcaching"]:
# removed anchor from cache key
return urlparse.urlunsplit(self.urlparts[:4]+[''])
else:
if self.config["anchorcaching"]:
# do not ignore anchor
return urlparse.urlunsplit(self.urlparts)
else:
# removed anchor from cache key
return urlparse.urlunsplit(self.urlparts[:4]+[''])
return None
@ -427,7 +427,7 @@ class UrlData (object):
self.isParseable() and \
self.hasContent() and \
not self.cached and \
(self.config["recursionlevel"] >= 0 and
(self.config["recursionlevel"] < 0 or
self.recursionLevel < self.config["recursionlevel"]) and \
not self.extern[0]