update regarding comparison engine

This commit is contained in:
Miroslav Stampar 2010-10-25 12:00:59 +00:00
parent 8df7c88174
commit 71543092b7
2 changed files with 5 additions and 0 deletions

View File

@ -1005,6 +1005,7 @@ def __setConfAttributes():
conf.dbmsConnector = None conf.dbmsConnector = None
conf.dbmsHandler = None conf.dbmsHandler = None
conf.dumpPath = None conf.dumpPath = None
conf.errorComparison = True
conf.minMatchBlock = 8 conf.minMatchBlock = 8
conf.dynMarkLength = 32 conf.dynMarkLength = 32
conf.httpHeaders = [] conf.httpHeaders = []

View File

@ -100,6 +100,10 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
#elif conf.md5hash is not None: #elif conf.md5hash is not None:
# return conf.md5hash == md5hash(page) # return conf.md5hash == md5hash(page)
# In case of an DBMS error page return False
elif conf.errorComparison and kb.lastErrorPage and kb.lastErrorPage[0]==kb.lastRequestUID:
return False
# If the url is not stable it returns sequence matcher between the # If the url is not stable it returns sequence matcher between the
# first untouched HTTP response page content and this content # first untouched HTTP response page content and this content
else: else: