mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
Patch for an Issue #1079
This commit is contained in:
parent
4f602daa5b
commit
d3c6cf1932
|
@ -2187,6 +2187,13 @@ def _basicOptionValidation():
|
||||||
errMsg = "option '--regexp' is incompatible with switch '--null-connection'"
|
errMsg = "option '--regexp' is incompatible with switch '--null-connection'"
|
||||||
raise SqlmapSyntaxException(errMsg)
|
raise SqlmapSyntaxException(errMsg)
|
||||||
|
|
||||||
|
if conf.regexp:
|
||||||
|
try:
|
||||||
|
re.compile(conf.regexp)
|
||||||
|
except re.error, ex:
|
||||||
|
errMsg = "invalid regular expression '%s' ('%s')" % (conf.regexp, ex)
|
||||||
|
raise SqlmapSyntaxException(errMsg)
|
||||||
|
|
||||||
if conf.dumpTable and conf.dumpAll:
|
if conf.dumpTable and conf.dumpAll:
|
||||||
errMsg = "switch '--dump' is incompatible with switch '--dump-all'"
|
errMsg = "switch '--dump' is incompatible with switch '--dump-all'"
|
||||||
raise SqlmapSyntaxException(errMsg)
|
raise SqlmapSyntaxException(errMsg)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user