mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Further pleasing pylint deity
This commit is contained in:
parent
c154e64a19
commit
3ac1283900
13 changed files with 41 additions and 17 deletions
|
|
@ -5,6 +5,8 @@ Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
|
|||
See the file 'LICENSE' for copying permission
|
||||
"""
|
||||
|
||||
from __future__ import division
|
||||
|
||||
import re
|
||||
import threading
|
||||
import time
|
||||
|
|
@ -196,7 +198,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
with hintlock:
|
||||
hintValue = kb.hintValue
|
||||
|
||||
if payload is not None and hintValue is not None and len(hintValue) >= idx:
|
||||
if payload is not None and len(hintValue or "") > 0 and len(hintValue) >= idx:
|
||||
if Backend.getIdentifiedDbms() in (DBMS.SQLITE, DBMS.ACCESS, DBMS.MAXDB, DBMS.DB2):
|
||||
posValue = hintValue[idx - 1]
|
||||
else:
|
||||
|
|
@ -213,7 +215,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
return hintValue[idx - 1]
|
||||
|
||||
with hintlock:
|
||||
kb.hintValue = None
|
||||
kb.hintValue = ""
|
||||
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue