mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-18 12:30:36 +03:00
minor comment update
This commit is contained in:
parent
637a8d8273
commit
5469186540
|
@ -32,11 +32,11 @@ def comparison(page, headers, code=None, getRatioValue=False, pageLength=None):
|
||||||
return _adjust(_comparison(page, headers, code, getRatioValue, pageLength), getRatioValue)
|
return _adjust(_comparison(page, headers, code, getRatioValue, pageLength), getRatioValue)
|
||||||
|
|
||||||
def _adjust(condition, getRatioValue):
|
def _adjust(condition, getRatioValue):
|
||||||
|
if not any([conf.string, conf.regexp, conf.code]):
|
||||||
# Negative logic approach is used in raw page comparison scheme as that what is "different" than original
|
# Negative logic approach is used in raw page comparison scheme as that what is "different" than original
|
||||||
# PAYLOAD.WHERE.NEGATIVE response is considered as True; in switch based approach negative logic is not
|
# PAYLOAD.WHERE.NEGATIVE response is considered as True; in switch based approach negative logic is not
|
||||||
# applied as that is by the user considered as True is that what is returned by the comparison mechanism
|
# applied as that what is by user considered as True is that what is returned by the comparison mechanism
|
||||||
# itself
|
# itself
|
||||||
if not any([conf.string, conf.regexp, conf.code]):
|
|
||||||
retVal = not (condition or False) if kb.negativeLogic else condition
|
retVal = not (condition or False) if kb.negativeLogic else condition
|
||||||
else:
|
else:
|
||||||
retVal = condition if not getRatioValue else (MAX_RATIO if condition else MIN_RATIO)
|
retVal = condition if not getRatioValue else (MAX_RATIO if condition else MIN_RATIO)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user