Fix --cookie-del (cookieDel) error checking

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:
CrazyKidJack 2022-10-14 10:36:47 -05:00 committed by Jackson Pfeffer
parent 1092dfb877
commit ba7ccadff1

View File

@ -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)