update regarding error parsing (and reporting)

This commit is contained in:
Miroslav Stampar
2010-11-16 10:42:42 +00:00
parent 71cb982039
commit 6ef3846400
6 changed files with 32 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ import re
from difflib import SequenceMatcher
from lib.core.common import wasLastRequestError
from lib.core.common import wasLastRequestDBMSError
from lib.core.data import conf
from lib.core.data import kb
from lib.core.data import logger
@@ -54,7 +54,7 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
return re.search(conf.regexp, page, re.I | re.M) is not None
# In case of an DBMS error page return None
if wasLastRequestError():
if wasLastRequestDBMSError():
return None
# Dynamic content lines to be excluded before comparison