update (--string and --regex should be done regardless of wasLastRequestError)

This commit is contained in:
Miroslav Stampar 2010-11-12 22:44:15 +00:00
parent 0d66f101da
commit 27735b14df

View File

@ -22,10 +22,6 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
if page is None and pageLength is None:
return None
# In case of an DBMS error page return None
if wasLastRequestError():
return None
regExpResults = None
if page:
@ -57,6 +53,10 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
if conf.regexp:
return re.search(conf.regexp, page, re.I | re.M) is not None
# In case of an DBMS error page return None
if wasLastRequestError():
return None
# Dynamic content lines to be excluded before comparison
if not kb.nullConnection and not conf.longestCommon:
for item in kb.dynamicMarkings: