mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-20 18:54:02 +00:00
code reviewing part 2
This commit is contained in:
parent
6a0e0cde3c
commit
1fa8f0cba7
9 changed files with 13 additions and 6 deletions
|
|
@ -23,7 +23,7 @@ from lib.core.settings import DIFF_TOLERANCE
|
|||
from lib.core.settings import LOWER_RATIO_BOUND
|
||||
from lib.core.settings import UPPER_RATIO_BOUND
|
||||
|
||||
def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
|
||||
def comparison(page, getSeqMatcher=False, pageLength=None):
|
||||
if page is None and pageLength is None:
|
||||
return None
|
||||
|
||||
|
|
|
|||
|
|
@ -472,8 +472,8 @@ class Connect:
|
|||
if content or response:
|
||||
return page, headers
|
||||
elif getSeqMatcher:
|
||||
return comparison(page, headers, getSeqMatcher=False, pageLength=pageLength), comparison(page, headers, getSeqMatcher=True, pageLength=pageLength)
|
||||
return comparison(page, getSeqMatcher=False, pageLength=pageLength), comparison(page, getSeqMatcher=True, pageLength=pageLength)
|
||||
elif pageLength or page:
|
||||
return comparison(page, headers, getSeqMatcher, pageLength)
|
||||
return comparison(page, getSeqMatcher, pageLength)
|
||||
else:
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue