From 27735b14dff7faa2d2ffe171dd1bb4d6717b123d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 12 Nov 2010 22:44:15 +0000 Subject: [PATCH] update (--string and --regex should be done regardless of wasLastRequestError) --- lib/request/comparison.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/request/comparison.py b/lib/request/comparison.py index 08a6d7a9c..3a5d0fa10 100644 --- a/lib/request/comparison.py +++ b/lib/request/comparison.py @@ -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: