mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-21 17:16:35 +03:00
Fix --cookie-del (cookieDel) error checking (#5198)
error checking was checking if len(conf.cookieDel) which always returns true when option is used. Now it checks if len(conf.cookieDel) != 1
This commit is contained in:
parent
aa9cc3987e
commit
5c55602296
|
@ -2675,7 +2675,7 @@ def _basicOptionValidation():
|
|||
logger.warning(warnMsg)
|
||||
|
||||
|
||||
if conf.cookieDel and len(conf.cookieDel):
|
||||
if conf.cookieDel and len(conf.cookieDel) != 1:
|
||||
errMsg = "option '--cookie-del' should contain a single character (e.g. ';')"
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user