Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8f10023

Browse files
committed
Fix for an Issue #266
1 parent 3b961c2 commit 8f10023

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/option.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)