@@ -1943,19 +1943,20 @@ def initTechnique(technique=None):
19431943
19441944 if data :
19451945 kb .pageTemplate , kb .errorIsNone = getPageTemplate (data .templatePayload , kb .injection .place )
1946+ kb .matchRatio = data .matchRatio
19461947
1947- kb . matchRatio = data . conf . matchRatio
1948- if data .conf .textOnly :
1948+ # Restoring stored conf options
1949+ if kb . injection .conf .textOnly :
19491950 conf .textOnly = True
19501951 debugMsg = "restoring switch --text-only"
19511952 logger .debug (debugMsg )
1952- if data .conf .string :
1953- conf .string = data .conf .string
1954- debugMsg = "restoring option --string '%s'" % data . conf .string
1953+ if kb . injection .conf .string :
1954+ conf .string = kb . injection .conf .string
1955+ debugMsg = "restoring option --string '%s'" % conf .string
19551956 logger .debug (debugMsg )
1956- if data .conf .regexp :
1957- conf .regexp = data .conf .regexp
1958- debugMsg = "restoring option --regexp '%s'" % data . conf .regexp
1957+ if kb . injection .conf .regexp :
1958+ conf .regexp = kb . injection .conf .regexp
1959+ debugMsg = "restoring option --regexp '%s'" % conf .regexp
19591960 logger .debug (debugMsg )
19601961 else :
19611962 warnMsg = "there is no injection data available for technique "
@@ -2086,8 +2087,7 @@ def getComparePageRatio(firstPage, secondPage, filtered=False):
20862087 """
20872088
20882089 if filtered :
2089- firstPage = getFilteredPageContent (firstPage )
2090- secondPage = getFilteredPageContent (secondPage )
2090+ (firstPage , secondPage ) = map (getFilteredPageContent , (firstPage , secondPage ))
20912091
20922092 conf .seqMatcher .set_seq1 (firstPage )
20932093 conf .seqMatcher .set_seq2 (secondPage )
0 commit comments