one more update related to the redirection mechanism

This commit is contained in:
Miroslav Stampar 2012-03-15 20:17:40 +00:00
parent 7d313ac911
commit adb5fff6b2
2 changed files with 5 additions and 1 deletions

View File

@ -1469,6 +1469,7 @@ def __setKnowledgeBaseAttributes(flushAll=True):
kb.pageTemplates = dict()
kb.previousMethod = None
kb.orderByColumns = None
kb.originalCode = None
kb.originalPage = None
kb.originalTimeDelay = None

View File

@ -309,7 +309,7 @@ class Connect:
else kb.originalPage if kb.redirectChoice == REDIRECTION.ORIGINAL\
else conn.read()
skipLogTraffic = kb.redirectChoice != REDIRECTION.FOLLOW
code = conn.redcode
code = conn.redcode if kb.redirectChoice != REDIRECTION.ORIGINAL else kb.originalCode
else:
page = conn.read()
@ -517,6 +517,7 @@ class Connect:
page = None
pageLength = None
uri = None
code = None
if not place:
place = kb.injection.place or PLACE.GET
@ -700,6 +701,8 @@ class Connect:
threadData.lastQueryDuration = calculateDeltaSeconds(start)
kb.originalCode = kb.originalCode or code
if kb.testMode:
kb.testQueryCount += 1