mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
fixes for bugs reported by pragmatk@gmail.com
This commit is contained in:
parent
c968b438f2
commit
a8d660db54
4 changed files with 12 additions and 4 deletions
|
|
@ -511,8 +511,8 @@ def __setUnion():
|
|||
debugMsg = "setting the UNION query SQL injection range of columns"
|
||||
logger.debug(debugMsg)
|
||||
|
||||
if "-" not in conf.uCols:
|
||||
raise sqlmapSyntaxException, "--union-cols must be a range with hyphon"
|
||||
if "-" not in conf.uCols or len(conf.uCols.split("-")) != 2:
|
||||
raise sqlmapSyntaxException, "--union-cols must be a range with hyphon (e.g. 1-10)"
|
||||
|
||||
conf.uCols = conf.uCols.replace(" ", "")
|
||||
conf.uColsStart, conf.uColsStop = conf.uCols.split("-")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue