mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
Minor bug fix to correctly handle --start and --stop
This commit is contained in:
parent
e2a0f7a47b
commit
91a47246f8
|
@ -538,10 +538,10 @@ def getRange(count, dump=False):
|
||||||
limitStop = count
|
limitStop = count
|
||||||
|
|
||||||
if dump:
|
if dump:
|
||||||
if isinstance(conf.limitStop, int) and conf.limitStop < count:
|
if isinstance(conf.limitStop, int) and conf.limitStop > 0 and conf.limitStop < limitStop:
|
||||||
limitStop = conf.limitStop
|
limitStop = conf.limitStop
|
||||||
|
|
||||||
if isinstance(conf.limitStart, int) and conf.limitStart <= limitStop:
|
if isinstance(conf.limitStart, int) and conf.limitStart > 0 and conf.limitStart <= limitStop:
|
||||||
limitStart = conf.limitStart
|
limitStart = conf.limitStart
|
||||||
|
|
||||||
# TODO: also for Microsoft SQL Server in getColumns method?
|
# TODO: also for Microsoft SQL Server in getColumns method?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user