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

Skip to content

Commit d300f99

Browse files
committed
Removing a redundant code (similar check is being done upper in code)
1 parent 8bc6154 commit d300f99

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/option.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2168,8 +2168,8 @@ def _basicOptionValidation():
21682168
errMsg = "maximum number of used threads is %d avoiding potential connection issues" % MAX_NUMBER_OF_THREADS
21692169
raise SqlmapSyntaxException(errMsg)
21702170

2171-
if conf.forms and not any((conf.url, conf.bulkFile, conf.sitemapUrl)):
2172-
errMsg = "switch '--forms' requires usage of option '-u' ('--url'), '-m' or '-x'"
2171+
if conf.forms and not any((conf.url, conf.googleDork, conf.bulkFile, conf.sitemapUrl)):
2172+
errMsg = "switch '--forms' requires usage of option '-u' ('--url'), '-g', '-m' or '-x'"
21732173
raise SqlmapSyntaxException(errMsg)
21742174

21752175
if conf.requestFile and conf.url and conf.url != DUMMY_URL:

0 commit comments

Comments
 (0)