File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1972,7 +1972,7 @@ def __basicOptionValidation():
19721972 errMsg = "switch '--tor' is incompatible with option '--proxy'"
19731973 raise sqlmapSyntaxException , errMsg
19741974
1975- if conf .checkTor and not any ([ conf .tor , conf .proxy ] ):
1975+ if conf .checkTor and not any (( conf .tor , conf .proxy ) ):
19761976 errMsg = "switch '--check-tor' requires usage of switch '--tor' (or option '--proxy' with HTTP proxy address using Tor)"
19771977 raise sqlmapSyntaxException , errMsg
19781978
@@ -1988,8 +1988,8 @@ def __basicOptionValidation():
19881988 errMsg = "option '--dump-format' accepts one of following values: %s" % ", " .join (getPublicTypeMembers (DUMP_FORMAT , True ))
19891989 raise sqlmapSyntaxException , errMsg
19901990
1991- if conf .dumpFormat != defaults .dumpFormat and not conf .dumpTable :
1992- errMsg = "option '--dump-format' requires usage of switch '--dump'"
1991+ if conf .dumpFormat != defaults .dumpFormat and not any (( conf .dumpTable , conf . dumpAll )) :
1992+ errMsg = "option '--dump-format' requires usage of switch '--dump' or '--dump-all' "
19931993 raise sqlmapSyntaxException , errMsg
19941994
19951995 if conf .skip and conf .testParameter :
You can’t perform that action at this time.
0 commit comments