fix for resume from session

This commit is contained in:
Miroslav Stampar 2010-11-07 23:25:53 +00:00
parent ea1b0d31be
commit 4f346eab33

View File

@ -221,12 +221,10 @@ def checkStability():
infoMsg = "testing if the url is stable, wait a few seconds"
logger.info(infoMsg)
firstPage, _ = Request.queryPage(content=True)
firstPage = conf.seqMatcher.a # set inside checkConnection()
time.sleep(1)
secondPage, _ = Request.queryPage(content=True)
conf.seqMatcher.set_seq1(firstPage)
kb.pageStable = (firstPage == secondPage)
if kb.pageStable:
@ -401,7 +399,8 @@ def checkConnection():
logger.info(infoMsg)
try:
Request.getPage()
page, _ = Request.queryPage(content=True)
conf.seqMatcher.set_seq1(page)
except sqlmapConnectionException, errMsg:
errMsg = getUnicode(errMsg)