mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-12 02:20:58 +00:00
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:
parent
6bcdff1fd8
commit
519c000cd5
1 changed files with 5 additions and 5 deletions
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue